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.
- package/components/AttachmentsList/AttachmentsList.vue.d.ts +19 -3
- package/components/AttachmentsList/AttachmentsList.vue.js +274 -111
- package/components/AttachmentsList/fileTypeIcon.d.ts +16 -0
- package/components/AttachmentsList/fileTypeIcon.js +127 -0
- package/components/AttachmentsList/index.d.ts +1 -0
- package/components/AttachmentsList/types.d.ts +74 -2
- package/components/Avatar.vue.js +2 -2
- package/components/Badge.vue.js +7 -7
- package/components/Button.vue.js +36 -43
- package/components/ButtonGroup.vue.js +2 -2
- package/components/ButtonGroup.vue2.js +8 -8
- package/components/CategoryManager/CategoryManager.vue.d.ts +36 -0
- package/components/CategoryManager/CategoryNode.vue.d.ts +15 -0
- package/components/CategoryManager/index.d.ts +2 -0
- package/components/CategoryManager/types.d.ts +43 -0
- package/components/Chat/ChatBubble.vue.js +70 -56
- package/components/Chat/ChatInterface.vue.js +182 -142
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +1 -0
- package/components/FilePicker/FilePicker.vue.js +117 -122
- package/components/Input.vue.js +28 -26
- package/components/Kanban/Kanban.vue.d.ts +7 -16
- package/components/Kanban/Kanban.vue.js +1 -1
- package/components/Kanban/Kanban.vue2.js +79 -47
- package/components/Kanban/KanbanBoard.vue.js +2 -2
- package/components/Kanban/KanbanBoard.vue2.js +21 -21
- package/components/Kanban/types.d.ts +3 -0
- package/components/List/List.vue.js +89 -85
- package/components/Navbar/Navbar.vue.d.ts +4 -0
- package/components/Navbar/Navbar.vue.js +196 -173
- package/components/Navbar/NavbarTabs.vue.js +72 -66
- package/components/NavbarCommandPalette.vue.js +11 -11
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +144 -104
- package/components/Screen/Screen.vue.d.ts +12 -29
- package/components/Screen/Screen.vue.js +228 -195
- package/components/Screen/components/ScreenViewToggle.vue.d.ts +6 -3
- package/components/Screen/components/ScreenViewToggle.vue.js +29 -34
- package/components/Screen/types.d.ts +59 -7
- package/components/Stats/Stats.vue.d.ts +1 -0
- package/components/Stats/Stats.vue.js +184 -156
- package/components/Stats/types.d.ts +1 -0
- package/components/Workbook/Sheet.vue.d.ts +1 -1
- package/directives/vRipple.js +28 -9
- package/index.js +87 -85
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
|
|
31
|
+
D(() => {
|
|
32
32
|
y(() => {
|
|
33
33
|
u(), i.value?.addEventListener("scroll", u, { passive: !0 });
|
|
34
34
|
});
|
|
35
|
-
}),
|
|
35
|
+
}), F(() => {
|
|
36
36
|
i.value?.removeEventListener("scroll", u);
|
|
37
37
|
});
|
|
38
|
-
const h =
|
|
39
|
-
|
|
38
|
+
const h = J();
|
|
39
|
+
B(
|
|
40
40
|
() => h.path,
|
|
41
41
|
() => y(u)
|
|
42
42
|
);
|
|
43
|
-
const
|
|
43
|
+
const x = b(/* @__PURE__ */ new Map()), V = (o, t) => {
|
|
44
44
|
const e = o?.$el ?? o;
|
|
45
|
-
e instanceof HTMLElement ?
|
|
45
|
+
e instanceof HTMLElement ? x.value.set(t, e) : x.value.delete(t);
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
B(
|
|
48
48
|
() => h.path,
|
|
49
49
|
(o) => {
|
|
50
50
|
y(() => {
|
|
51
|
-
const t = n.items.findIndex((r) =>
|
|
51
|
+
const t = n.items.findIndex((r) => d(r));
|
|
52
52
|
if (t === -1) return;
|
|
53
|
-
|
|
53
|
+
x.value.get(t)?.scrollIntoView({ block: "nearest", inline: "center", behavior: "smooth" });
|
|
54
54
|
});
|
|
55
55
|
},
|
|
56
56
|
{ immediate: !0 }
|
|
57
57
|
);
|
|
58
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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" : "",
|
|
92
|
-
return [t,
|
|
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(),
|
|
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
|
-
|
|
97
|
+
g(E, { name: "fade-x" }, {
|
|
98
98
|
default: k(() => [
|
|
99
|
-
C.value ? (s(),
|
|
100
|
-
t[
|
|
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
|
-
|
|
108
|
+
g(m, {
|
|
109
109
|
icon: "lucide:chevron-left",
|
|
110
110
|
class: "w-4 h-4"
|
|
111
111
|
})
|
|
112
112
|
])
|
|
113
|
-
])) :
|
|
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
|
-
|
|
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),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
e.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
161
|
+
g(E, { name: "fade-x" }, {
|
|
156
162
|
default: k(() => [
|
|
157
|
-
I.value ? (s(),
|
|
158
|
-
t[
|
|
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[
|
|
170
|
+
onClick: t[3] || (t[3] = (e) => R("right"))
|
|
165
171
|
}, [
|
|
166
|
-
|
|
172
|
+
g(m, {
|
|
167
173
|
icon: "lucide:chevron-right",
|
|
168
174
|
class: "w-4 h-4"
|
|
169
175
|
})
|
|
170
176
|
])
|
|
171
|
-
])) :
|
|
177
|
+
])) : p("", !0)
|
|
172
178
|
]),
|
|
173
179
|
_: 1
|
|
174
180
|
})
|
|
@@ -176,5 +182,5 @@ const q = {
|
|
|
176
182
|
}
|
|
177
183
|
});
|
|
178
184
|
export {
|
|
179
|
-
|
|
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
|
|
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
|
|
6
|
-
/* empty css
|
|
7
|
-
const
|
|
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 =
|
|
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",
|
|
60
|
-
a("kbd",
|
|
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,
|
|
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)) :
|
|
86
|
+
], 64)) : B("", !0);
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
export {
|
|
90
|
-
|
|
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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-394f3d8f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|