vlite3 1.0.4 → 1.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.
Files changed (49) hide show
  1. package/components/AttachmentsList/AttachmentsList.vue.d.ts +19 -3
  2. package/components/AttachmentsList/AttachmentsList.vue.js +274 -111
  3. package/components/AttachmentsList/fileTypeIcon.d.ts +16 -0
  4. package/components/AttachmentsList/fileTypeIcon.js +127 -0
  5. package/components/AttachmentsList/index.d.ts +1 -0
  6. package/components/AttachmentsList/types.d.ts +74 -2
  7. package/components/Avatar.vue.js +2 -2
  8. package/components/Badge.vue.js +7 -7
  9. package/components/Button.vue.js +36 -43
  10. package/components/ButtonGroup.vue.js +2 -2
  11. package/components/ButtonGroup.vue2.js +8 -8
  12. package/components/CategoryManager/CategoryManager.vue.d.ts +36 -0
  13. package/components/CategoryManager/CategoryNode.vue.d.ts +15 -0
  14. package/components/CategoryManager/index.d.ts +2 -0
  15. package/components/CategoryManager/types.d.ts +43 -0
  16. package/components/Chat/ChatBubble.vue.js +70 -56
  17. package/components/Chat/ChatInterface.vue.js +182 -142
  18. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  19. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  20. package/components/Dropdown/DropdownMenu.vue.js +2 -2
  21. package/components/Dropdown/DropdownMenu.vue2.js +1 -0
  22. package/components/FilePicker/FilePicker.vue.js +117 -122
  23. package/components/Input.vue.js +28 -26
  24. package/components/Kanban/Kanban.vue.d.ts +7 -16
  25. package/components/Kanban/Kanban.vue.js +1 -1
  26. package/components/Kanban/Kanban.vue2.js +79 -47
  27. package/components/Kanban/KanbanBoard.vue.js +2 -2
  28. package/components/Kanban/KanbanBoard.vue2.js +21 -21
  29. package/components/Kanban/types.d.ts +3 -0
  30. package/components/List/List.vue.js +89 -85
  31. package/components/Navbar/Navbar.vue.d.ts +4 -0
  32. package/components/Navbar/Navbar.vue.js +196 -173
  33. package/components/Navbar/NavbarTabs.vue.js +72 -66
  34. package/components/NavbarCommandPalette.vue.js +11 -11
  35. package/components/NumberInput.vue.js +2 -2
  36. package/components/NumberInput.vue2.js +144 -104
  37. package/components/Screen/Screen.vue.d.ts +12 -29
  38. package/components/Screen/Screen.vue.js +228 -195
  39. package/components/Screen/components/ScreenViewToggle.vue.d.ts +6 -3
  40. package/components/Screen/components/ScreenViewToggle.vue.js +29 -34
  41. package/components/Screen/types.d.ts +59 -7
  42. package/components/Stats/Stats.vue.d.ts +1 -0
  43. package/components/Stats/Stats.vue.js +184 -156
  44. package/components/Stats/types.d.ts +1 -0
  45. package/components/Workbook/Sheet.vue.d.ts +1 -1
  46. package/directives/vRipple.js +28 -9
  47. package/index.js +87 -85
  48. package/package.json +1 -1
  49. package/style.css +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as T, ref as f, onMounted as W, nextTick as y, onUnmounted as j, watch as z, openBlock as s, createElementBlock as b, normalizeClass as c, createVNode as v, Transition as L, withCtx as k, createElementVNode as l, createCommentVNode as g, Fragment as A, renderList as _, createBlock as w, unref as S, withModifiers as D, toDisplayString as F } from "vue";
2
- import { useRoute as H, RouterLink as P } from "vue-router";
3
- import p from "../Icon.vue.js";
4
- import { $t as U } from "../../utils/i18n.js";
5
- const q = {
1
+ import { defineComponent as A, ref as b, onMounted as D, nextTick as y, onUnmounted as F, watch as B, openBlock as s, createElementBlock as v, normalizeClass as c, createVNode as g, Transition as E, withCtx as k, createElementVNode as l, createCommentVNode as p, Fragment as H, renderList as P, isMemoSame as U, createBlock as w, unref as M, withModifiers as q, toDisplayString as G } from "vue";
2
+ import { useRoute as J, RouterLink as K } from "vue-router";
3
+ import m from "../Icon.vue.js";
4
+ import { $t as O } from "../../utils/i18n.js";
5
+ const Q = {
6
6
  key: 0,
7
7
  class: "absolute left-0 top-0 bottom-0 z-10 flex items-center pointer-events-none"
8
- }, G = { class: "truncate" }, J = {
8
+ }, X = { class: "truncate" }, Y = {
9
9
  key: 0,
10
10
  class: "absolute right-0 top-0 bottom-0 z-10 flex items-center justify-end pointer-events-none"
11
- }, Y = /* @__PURE__ */ T({
11
+ }, re = /* @__PURE__ */ A({
12
12
  __name: "NavbarTabs",
13
13
  props: {
14
14
  items: {},
@@ -19,7 +19,7 @@ const q = {
19
19
  class: { default: "" }
20
20
  },
21
21
  setup(a) {
22
- const n = a, i = f(null), C = f(!1), I = f(!1), u = () => {
22
+ const n = a, i = b(null), C = b(!1), I = b(!1), u = () => {
23
23
  const o = i.value;
24
24
  o && (C.value = o.scrollLeft > 2, I.value = o.scrollLeft + o.clientWidth < o.scrollWidth - 2);
25
25
  }, R = (o) => {
@@ -28,53 +28,53 @@ const q = {
28
28
  const e = t.clientWidth * 0.6;
29
29
  t.scrollBy({ left: o === "right" ? e : -e, behavior: "smooth" });
30
30
  };
31
- W(() => {
31
+ D(() => {
32
32
  y(() => {
33
33
  u(), i.value?.addEventListener("scroll", u, { passive: !0 });
34
34
  });
35
- }), j(() => {
35
+ }), F(() => {
36
36
  i.value?.removeEventListener("scroll", u);
37
37
  });
38
- const h = H();
39
- z(
38
+ const h = J();
39
+ B(
40
40
  () => h.path,
41
41
  () => y(u)
42
42
  );
43
- const m = f(/* @__PURE__ */ new Map()), $ = (o, t) => {
43
+ const x = b(/* @__PURE__ */ new Map()), V = (o, t) => {
44
44
  const e = o?.$el ?? o;
45
- e instanceof HTMLElement ? m.value.set(t, e) : m.value.delete(t);
45
+ e instanceof HTMLElement ? x.value.set(t, e) : x.value.delete(t);
46
46
  };
47
- z(
47
+ B(
48
48
  () => h.path,
49
49
  (o) => {
50
50
  y(() => {
51
- const t = n.items.findIndex((r) => x(r));
51
+ const t = n.items.findIndex((r) => d(r));
52
52
  if (t === -1) return;
53
- m.value.get(t)?.scrollIntoView({ block: "nearest", inline: "center", behavior: "smooth" });
53
+ x.value.get(t)?.scrollIntoView({ block: "nearest", inline: "center", behavior: "smooth" });
54
54
  });
55
55
  },
56
56
  { immediate: !0 }
57
57
  );
58
- const B = {
58
+ const N = {
59
59
  line: "flex border-b border-border gap-0",
60
60
  pill: "flex gap-1 p-1 bg-secondary/80 rounded-lg",
61
61
  solid: "flex gap-0",
62
62
  ghost: "flex gap-1"
63
- }, E = {
63
+ }, T = {
64
64
  sm: "px-2.5 py-1.5 text-xs",
65
65
  md: "px-3.5 py-2 text-sm",
66
66
  lg: "px-5 py-2.5 text-base"
67
- }, V = {
67
+ }, W = {
68
68
  line: "text-primary border-b-2 border-primary -mb-px",
69
69
  pill: "bg-background text-foreground shadow-sm",
70
70
  solid: "bg-primary-light text-primary-dark",
71
71
  ghost: "bg-accent text-accent-foreground"
72
- }, M = {
72
+ }, j = {
73
73
  line: "text-muted-foreground border-b-2 border-transparent hover:text-foreground hover:border-border",
74
74
  pill: "text-muted-foreground hover:text-foreground hover:bg-accent/50",
75
75
  solid: "text-muted-foreground hover:text-foreground hover:bg-accent/50",
76
76
  ghost: "text-muted-foreground hover:text-foreground hover:bg-accent/50"
77
- }, x = (o) => {
77
+ }, d = (o) => {
78
78
  const t = h.path;
79
79
  if (!o.to) return !1;
80
80
  const e = typeof o.to == "string" ? o.to : o.to.path;
@@ -87,17 +87,17 @@ const q = {
87
87
  return r === "/" || r === "?" || r === "#" || r === void 0;
88
88
  }
89
89
  return !1;
90
- }, N = (o) => {
91
- const t = "group relative inline-flex items-center justify-center gap-2 font-medium whitespace-nowrap shrink-0 select-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-1", e = o.disabled ? "opacity-50 pointer-events-none cursor-not-allowed" : "", d = x(o) ? n.activeClass || V[n.variant] : n.inactiveClass || M[n.variant];
92
- return [t, E[n.size], d, e].filter(Boolean).join(" ");
90
+ }, _ = (o) => {
91
+ const t = "group relative inline-flex items-center justify-center gap-2 font-medium whitespace-nowrap shrink-0 select-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-1", e = o.disabled ? "opacity-50 pointer-events-none cursor-not-allowed" : "", z = d(o) ? n.activeClass || W[n.variant] : n.inactiveClass || j[n.variant];
92
+ return [t, T[n.size], z, e].filter(Boolean).join(" ");
93
93
  };
94
- return (o, t) => (s(), b("div", {
94
+ return (o, t) => (s(), v("div", {
95
95
  class: c(["relative flex items-center w-full min-w-0 border-b", n.class])
96
96
  }, [
97
- v(L, { name: "fade-x" }, {
97
+ g(E, { name: "fade-x" }, {
98
98
  default: k(() => [
99
- C.value ? (s(), b("div", q, [
100
- t[2] || (t[2] = l("div", { class: "w-8 h-full bg-gradient-to-r from-background to-transparent" }, null, -1)),
99
+ C.value ? (s(), v("div", Q, [
100
+ t[4] || (t[4] = l("div", { class: "w-8 h-full bg-gradient-to-r from-background to-transparent" }, null, -1)),
101
101
  l("button", {
102
102
  type: "button",
103
103
  class: "pointer-events-auto absolute left-0 h-full px-1 flex items-center text-muted-foreground hover:text-foreground transition-colors",
@@ -105,12 +105,12 @@ const q = {
105
105
  tabindex: "-1",
106
106
  onClick: t[0] || (t[0] = (e) => R("left"))
107
107
  }, [
108
- v(p, {
108
+ g(m, {
109
109
  icon: "lucide:chevron-left",
110
110
  class: "w-4 h-4"
111
111
  })
112
112
  ])
113
- ])) : g("", !0)
113
+ ])) : p("", !0)
114
114
  ]),
115
115
  _: 1
116
116
  }),
@@ -120,55 +120,61 @@ const q = {
120
120
  role: "tablist",
121
121
  class: c([
122
122
  "flex-1 overflow-x-auto scroll-smooth navbar-tabs-no-scrollbar",
123
- B[a.variant]
123
+ N[a.variant]
124
124
  ]),
125
+ style: { "will-change": "transform", contain: "layout style" },
125
126
  "aria-label": "Page tabs"
126
127
  }, [
127
- (s(!0), b(A, null, _(a.items, (e, r) => (s(), w(S(P), {
128
- key: r,
129
- ref_for: !0,
130
- ref: (d) => $(d, r),
131
- to: e.to || "",
132
- role: "tab",
133
- "aria-selected": x(e),
134
- "aria-disabled": e.disabled || void 0,
135
- tabindex: e.disabled ? -1 : 0,
136
- class: c(N(e)),
137
- onClick: D((d) => !e.disabled && e.to && o.$router.push(e.to), ["prevent"])
138
- }, {
139
- default: k(() => [
140
- e.icon ? (s(), w(p, {
141
- key: 0,
142
- icon: e.icon,
143
- class: c(["shrink-0", a.size === "sm" ? "w-3.5 h-3.5" : "w-4 h-4"])
144
- }, null, 8, ["icon", "class"])) : g("", !0),
145
- l("span", G, F(e.labelI18n ? S(U)(e.labelI18n) : e.label), 1),
146
- e.iconRight ? (s(), w(p, {
147
- key: 1,
148
- icon: e.iconRight,
149
- class: c(["shrink-0 opacity-70", a.size === "sm" ? "w-3.5 h-3.5" : "w-4 h-4"])
150
- }, null, 8, ["icon", "class"])) : g("", !0)
151
- ]),
152
- _: 2
153
- }, 1032, ["to", "aria-selected", "aria-disabled", "tabindex", "class", "onClick"]))), 128))
128
+ (s(!0), v(H, null, P(a.items, (e, r, z, f) => {
129
+ const L = [e, d(e), e.disabled];
130
+ if (f && f.key === r && U(f, L)) return f;
131
+ const S = (s(), w(M(K), {
132
+ key: r,
133
+ ref_for: !0,
134
+ ref: ($) => V($, r),
135
+ to: e.to || "",
136
+ role: "tab",
137
+ "aria-selected": d(e),
138
+ "aria-disabled": e.disabled || void 0,
139
+ tabindex: e.disabled ? -1 : 0,
140
+ class: c(_(e)),
141
+ onClick: q(($) => !e.disabled && e.to && o.$router.push(e.to), ["prevent"])
142
+ }, {
143
+ default: k(() => [
144
+ e.icon ? (s(), w(m, {
145
+ key: 0,
146
+ icon: e.icon,
147
+ class: c(["shrink-0", a.size === "sm" ? "w-3.5 h-3.5" : "w-4 h-4"])
148
+ }, null, 8, ["icon", "class"])) : p("", !0),
149
+ l("span", X, G(e.labelI18n ? M(O)(e.labelI18n) : e.label), 1),
150
+ e.iconRight ? (s(), w(m, {
151
+ key: 1,
152
+ icon: e.iconRight,
153
+ class: c(["shrink-0 opacity-70", a.size === "sm" ? "w-3.5 h-3.5" : "w-4 h-4"])
154
+ }, null, 8, ["icon", "class"])) : p("", !0)
155
+ ]),
156
+ _: 2
157
+ }, 1032, ["to", "aria-selected", "aria-disabled", "tabindex", "class", "onClick"]));
158
+ return S.memo = L, S;
159
+ }, t, 1), 128))
154
160
  ], 2),
155
- v(L, { name: "fade-x" }, {
161
+ g(E, { name: "fade-x" }, {
156
162
  default: k(() => [
157
- I.value ? (s(), b("div", J, [
158
- t[3] || (t[3] = l("div", { class: "w-8 h-full bg-gradient-to-l from-background to-transparent" }, null, -1)),
163
+ I.value ? (s(), v("div", Y, [
164
+ t[5] || (t[5] = l("div", { class: "w-8 h-full bg-gradient-to-l from-background to-transparent" }, null, -1)),
159
165
  l("button", {
160
166
  type: "button",
161
167
  class: "pointer-events-auto absolute right-0 h-full px-1 flex items-center text-muted-foreground hover:text-foreground transition-colors",
162
168
  "aria-label": "Scroll tabs right",
163
169
  tabindex: "-1",
164
- onClick: t[1] || (t[1] = (e) => R("right"))
170
+ onClick: t[3] || (t[3] = (e) => R("right"))
165
171
  }, [
166
- v(p, {
172
+ g(m, {
167
173
  icon: "lucide:chevron-right",
168
174
  class: "w-4 h-4"
169
175
  })
170
176
  ])
171
- ])) : g("", !0)
177
+ ])) : p("", !0)
172
178
  ]),
173
179
  _: 1
174
180
  })
@@ -176,5 +182,5 @@ const q = {
176
182
  }
177
183
  });
178
184
  export {
179
- Y as default
185
+ re as default
180
186
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as x, ref as m, shallowRef as k, onMounted as C, onUnmounted as P, watch as I, computed as y, openBlock as M, createElementBlock as E, Fragment as K, createElementVNode as a, normalizeClass as D, createVNode as c, toDisplayString as p, unref as O, mergeProps as B, createCommentVNode as G } from "vue";
1
+ import { defineComponent as x, ref as m, shallowRef as k, onMounted as C, onUnmounted as P, watch as I, computed as y, openBlock as M, createElementBlock as E, Fragment as K, createElementVNode as a, normalizeClass as D, createVNode as c, toDisplayString as p, unref as O, mergeProps as R, createCommentVNode as B, markRaw as G } from "vue";
2
2
  import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
- import { $t as R } from "../utils/i18n.js";
6
- /* empty css */
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({
5
+ import { $t as U } from "../utils/i18n.js";
6
+ /* empty css */
7
+ const V = { class: "block truncate -text-fs-1.5" }, S = { 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" }, A = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
10
10
  items: { default: () => [] },
@@ -22,7 +22,7 @@ const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline
22
22
  }, u = () => {
23
23
  n.value = !1;
24
24
  }, h = (e, l) => {
25
- u(), f.value = e, d.value = l || {}, s.value = !0;
25
+ u(), f.value = e ? G(e) : null, d.value = l || {}, s.value = !0;
26
26
  }, r = (e) => {
27
27
  t.enabled && (e.metaKey || e.ctrlKey) && e.key === t.shortcutKey && (e.preventDefault(), n.value ? u() : b());
28
28
  };
@@ -38,7 +38,7 @@ const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline
38
38
  );
39
39
  const w = y(() => {
40
40
  if (t.placeholderI18n) {
41
- const e = R(t.placeholderI18n);
41
+ const e = U(t.placeholderI18n);
42
42
  if (e !== t.placeholderI18n) return e;
43
43
  }
44
44
  return t.placeholder;
@@ -56,8 +56,8 @@ const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline
56
56
  icon: "lucide:search",
57
57
  class: "w-3.5 h-3.5 shrink-0"
58
58
  }),
59
- a("span", U, p(w.value.split(",")[0]) + "...", 1),
60
- a("kbd", V, [
59
+ a("span", V, p(w.value.split(",")[0]) + "...", 1),
60
+ a("kbd", S, [
61
61
  a("span", null, p(g.value ? "⌘" : "Ctrl"), 1),
62
62
  a("span", null, p(o.shortcutKey.toUpperCase()), 1)
63
63
  ])
@@ -77,15 +77,15 @@ const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-auto inline
77
77
  onOpenDynamicModal: h
78
78
  }
79
79
  }, null, 8, ["show", "body", "bodyProps"]),
80
- c(v, B(d.value, {
80
+ c(v, R(d.value, {
81
81
  show: s.value,
82
82
  "onUpdate:show": l[1] || (l[1] = (i) => s.value = i),
83
83
  body: f.value,
84
84
  bodyProps: d.value
85
85
  }), null, 16, ["show", "body", "bodyProps"])
86
- ], 64)) : G("", !0);
86
+ ], 64)) : B("", !0);
87
87
  }
88
88
  });
89
89
  export {
90
- q as default
90
+ A as default
91
91
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./NumberInput.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a771336"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-394f3d8f"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };