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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as E, ref as k, watch as q, computed as i, onBeforeUnmount as L, openBlock as b, createElementBlock as h, normalizeClass as r, withModifiers as a, createVNode as p, createCommentVNode as N, createElementVNode as P, withKeys as z } from "vue";
|
|
2
|
+
import w from "./Icon.vue.js";
|
|
3
|
+
const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disabled", "readonly", "onKeydown"], $ = ["disabled"], A = {
|
|
4
4
|
key: 2,
|
|
5
5
|
class: "flex flex-col h-full border-l border-input"
|
|
6
|
-
},
|
|
6
|
+
}, D = ["disabled"], G = ["disabled"], O = /* @__PURE__ */ E({
|
|
7
7
|
__name: "NumberInput",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: void 0 },
|
|
@@ -21,24 +21,24 @@ const E = ["disabled"], q = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
21
21
|
rounded: { default: "md" }
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
() =>
|
|
28
|
-
(
|
|
29
|
-
|
|
24
|
+
setup(t, { emit: V }) {
|
|
25
|
+
const n = t, m = V, d = k(n.modelValue ?? "");
|
|
26
|
+
q(
|
|
27
|
+
() => n.modelValue,
|
|
28
|
+
(l) => {
|
|
29
|
+
l !== void 0 && (d.value = l);
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const B = k(null), c = i(() => {
|
|
33
|
+
const l = {
|
|
34
34
|
xs: { h: "h-7", text: "text-xs", px: "px-2", icon: "w-3 h-3" },
|
|
35
35
|
sm: { h: "h-8", text: "text-xs", px: "px-2", icon: "w-3.5 h-3.5" },
|
|
36
36
|
md: { h: "h-9", text: "text-sm", px: "px-3", icon: "w-4 h-4" },
|
|
37
37
|
lg: { h: "h-10", text: "text-sm", px: "px-4", icon: "w-5 h-5" },
|
|
38
38
|
xl: { h: "h-12", text: "text-lg", px: "px-5", icon: "w-6 h-6" }
|
|
39
39
|
};
|
|
40
|
-
return
|
|
41
|
-
}),
|
|
40
|
+
return l[n.size] || l.md;
|
|
41
|
+
}), I = i(() => ({
|
|
42
42
|
none: "rounded-none",
|
|
43
43
|
sm: "rounded-sm",
|
|
44
44
|
md: "rounded-md",
|
|
@@ -46,7 +46,7 @@ const E = ["disabled"], q = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
46
46
|
xl: "rounded-xl",
|
|
47
47
|
"2xl": "rounded-2xl",
|
|
48
48
|
full: "rounded-full"
|
|
49
|
-
})[
|
|
49
|
+
})[n.rounded] || "rounded-md"), S = i(() => ({
|
|
50
50
|
none: "rounded-l-none",
|
|
51
51
|
sm: "rounded-l-sm",
|
|
52
52
|
md: "rounded-l-md",
|
|
@@ -54,7 +54,7 @@ const E = ["disabled"], q = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
54
54
|
xl: "rounded-l-xl",
|
|
55
55
|
"2xl": "rounded-l-2xl",
|
|
56
56
|
full: "rounded-l-full"
|
|
57
|
-
})[
|
|
57
|
+
})[n.rounded] || "rounded-l-md"), j = i(() => ({
|
|
58
58
|
none: "rounded-r-none",
|
|
59
59
|
sm: "rounded-r-sm",
|
|
60
60
|
md: "rounded-r-md",
|
|
@@ -62,131 +62,171 @@ const E = ["disabled"], q = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
62
62
|
xl: "rounded-r-xl",
|
|
63
63
|
"2xl": "rounded-r-2xl",
|
|
64
64
|
full: "rounded-r-full"
|
|
65
|
-
})[
|
|
65
|
+
})[n.rounded] || "rounded-r-md"), F = i(() => [
|
|
66
66
|
"flex items-center w-full relative transition-all duration-200",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
]),
|
|
67
|
+
n.disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
68
|
+
n.mode === "solid" ? "bg-muted" : "",
|
|
69
|
+
n.mode === "outline" ? "border border-input bg-background" : "",
|
|
70
|
+
n.mode === "ghost" ? "bg-transparent" : "",
|
|
71
|
+
c.value.h,
|
|
72
|
+
I.value
|
|
73
|
+
]), K = i(() => [
|
|
74
74
|
"flex-1 w-full bg-transparent focus:outline-none appearance-none",
|
|
75
|
-
|
|
75
|
+
n.variant === "split" ? "text-center" : "text-left pl-3",
|
|
76
76
|
"placeholder:text-muted-foreground/50",
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
]),
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
c.value.text,
|
|
78
|
+
n.disabled ? "cursor-not-allowed" : ""
|
|
79
|
+
]), C = i(() => {
|
|
80
|
+
const l = "flex items-center justify-center transition-colors active:scale-95 shrink-0 select-none", e = n.disabled ? "" : "hover:text-primary hover:bg-muted/50";
|
|
81
|
+
return n.size === "xs" || n.size, n.variant === "split" ? n.mode === "solid" ? [
|
|
82
|
+
l,
|
|
83
|
+
n.disabled ? "" : "hover:text-primary hover:bg-background/80",
|
|
84
84
|
"bg-background shadow-sm rounded-full mx-1 my-0.5 aspect-square self-center h-[calc(100%-12px)] w-auto max-w-[calc(100%-12px)] flex items-center justify-center"
|
|
85
|
-
] : [
|
|
86
|
-
}),
|
|
87
|
-
if (
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
] : [l, e, "h-full", "px-2"] : [l, e, "h-1/2 w-8 border-l border-input/50"];
|
|
86
|
+
}), s = (l) => {
|
|
87
|
+
if (n.disabled || n.readonly) return;
|
|
88
|
+
let e = l;
|
|
89
|
+
n.min !== void 0 && e < n.min && (e = n.min), n.max !== void 0 && e > n.max && (e = n.max), d.value = e, m("update:modelValue", e), m("change", e);
|
|
90
|
+
};
|
|
91
|
+
let x = null, f = null;
|
|
92
|
+
const o = () => {
|
|
93
|
+
x && clearTimeout(x), f && clearInterval(f), x = null, f = null;
|
|
94
|
+
}, y = () => {
|
|
95
|
+
if (n.disabled || n.readonly || n.max !== void 0 && Number(d.value) >= n.max) {
|
|
96
|
+
o();
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const l = Number(d.value) || 0;
|
|
100
|
+
s(l + n.step);
|
|
101
|
+
}, g = () => {
|
|
102
|
+
if (n.disabled || n.readonly || n.min !== void 0 && Number(d.value) <= n.min) {
|
|
103
|
+
o();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const l = Number(d.value) || 0;
|
|
107
|
+
s(l - n.step);
|
|
108
|
+
}, v = (l, e) => {
|
|
109
|
+
e.button !== 0 && e.pointerType === "mouse" || (o(), l === "inc" ? y() : g(), x = setTimeout(() => {
|
|
110
|
+
f = setInterval(() => {
|
|
111
|
+
l === "inc" ? y() : g();
|
|
112
|
+
}, 50);
|
|
113
|
+
}, 400));
|
|
114
|
+
}, R = (l) => {
|
|
115
|
+
const e = l.target, u = parseFloat(e.value);
|
|
116
|
+
if (isNaN(u)) {
|
|
117
|
+
d.value = e.value;
|
|
100
118
|
return;
|
|
101
119
|
}
|
|
102
|
-
u
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
isNaN(
|
|
120
|
+
s(u);
|
|
121
|
+
}, T = (l) => {
|
|
122
|
+
m("blur", l);
|
|
123
|
+
const e = parseFloat(String(d.value));
|
|
124
|
+
isNaN(e) ? s(n.min || 0) : s(e);
|
|
107
125
|
};
|
|
108
|
-
return (
|
|
109
|
-
|
|
126
|
+
return L(() => {
|
|
127
|
+
o();
|
|
128
|
+
}), (l, e) => (b(), h("div", {
|
|
129
|
+
class: r([F.value, "overflow-hidden"])
|
|
110
130
|
}, [
|
|
111
|
-
|
|
131
|
+
t.variant === "split" ? (b(), h("button", {
|
|
112
132
|
key: 0,
|
|
113
133
|
type: "button",
|
|
114
|
-
class:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
134
|
+
class: r([
|
|
135
|
+
C.value,
|
|
136
|
+
t.mode === "outline" ? "border-r border-input" : "",
|
|
137
|
+
t.variant === "split" && t.mode !== "solid" ? S.value : ""
|
|
118
138
|
]),
|
|
119
|
-
disabled:
|
|
120
|
-
|
|
139
|
+
disabled: t.disabled || t.min !== void 0 && Number(d.value) <= t.min,
|
|
140
|
+
onPointerdown: e[0] || (e[0] = (u) => v("dec", u)),
|
|
141
|
+
onPointerup: o,
|
|
142
|
+
onPointerleave: o,
|
|
143
|
+
onPointercancel: o,
|
|
144
|
+
onContextmenu: e[1] || (e[1] = a(() => {
|
|
145
|
+
}, ["prevent"]))
|
|
121
146
|
}, [
|
|
122
|
-
|
|
147
|
+
p(w, {
|
|
123
148
|
icon: "lucide:minus",
|
|
124
|
-
class:
|
|
149
|
+
class: r(c.value.icon)
|
|
125
150
|
}, null, 8, ["class"])
|
|
126
|
-
],
|
|
127
|
-
|
|
151
|
+
], 42, M)) : N("", !0),
|
|
152
|
+
P("input", {
|
|
128
153
|
ref_key: "inputRef",
|
|
129
|
-
ref:
|
|
154
|
+
ref: B,
|
|
130
155
|
type: "number",
|
|
131
156
|
value: d.value,
|
|
132
|
-
min:
|
|
133
|
-
max:
|
|
134
|
-
step:
|
|
135
|
-
placeholder:
|
|
136
|
-
disabled:
|
|
137
|
-
readonly:
|
|
138
|
-
class:
|
|
139
|
-
onInput:
|
|
140
|
-
onFocus:
|
|
141
|
-
onBlur:
|
|
157
|
+
min: t.min,
|
|
158
|
+
max: t.max,
|
|
159
|
+
step: t.step,
|
|
160
|
+
placeholder: t.placeholder,
|
|
161
|
+
disabled: t.disabled,
|
|
162
|
+
readonly: t.readonly,
|
|
163
|
+
class: r(K.value),
|
|
164
|
+
onInput: R,
|
|
165
|
+
onFocus: e[2] || (e[2] = (u) => m("focus", u)),
|
|
166
|
+
onBlur: T,
|
|
142
167
|
onKeydown: [
|
|
143
|
-
|
|
144
|
-
|
|
168
|
+
z(a(y, ["prevent"]), ["up"]),
|
|
169
|
+
z(a(g, ["prevent"]), ["down"])
|
|
145
170
|
]
|
|
146
|
-
}, null, 42,
|
|
147
|
-
|
|
171
|
+
}, null, 42, U),
|
|
172
|
+
t.variant === "split" ? (b(), h("button", {
|
|
148
173
|
key: 1,
|
|
149
174
|
type: "button",
|
|
150
|
-
class:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
175
|
+
class: r([
|
|
176
|
+
C.value,
|
|
177
|
+
t.mode === "outline" ? "border-l border-input" : "",
|
|
178
|
+
t.variant === "split" && t.mode !== "solid" ? j.value : ""
|
|
154
179
|
]),
|
|
155
|
-
disabled:
|
|
156
|
-
|
|
180
|
+
disabled: t.disabled || t.max !== void 0 && Number(d.value) >= t.max,
|
|
181
|
+
onPointerdown: e[3] || (e[3] = (u) => v("inc", u)),
|
|
182
|
+
onPointerup: o,
|
|
183
|
+
onPointerleave: o,
|
|
184
|
+
onPointercancel: o,
|
|
185
|
+
onContextmenu: e[4] || (e[4] = a(() => {
|
|
186
|
+
}, ["prevent"]))
|
|
157
187
|
}, [
|
|
158
|
-
|
|
188
|
+
p(w, {
|
|
159
189
|
icon: "lucide:plus",
|
|
160
|
-
class:
|
|
190
|
+
class: r(c.value.icon)
|
|
161
191
|
}, null, 8, ["class"])
|
|
162
|
-
],
|
|
163
|
-
|
|
164
|
-
|
|
192
|
+
], 42, $)) : N("", !0),
|
|
193
|
+
t.variant === "stacked" ? (b(), h("div", A, [
|
|
194
|
+
P("button", {
|
|
165
195
|
type: "button",
|
|
166
196
|
class: "flex-1 flex items-center justify-center hover:bg-muted/50 w-8 border-b border-input",
|
|
167
|
-
disabled:
|
|
168
|
-
|
|
197
|
+
disabled: t.disabled || t.max !== void 0 && Number(d.value) >= t.max,
|
|
198
|
+
onPointerdown: e[5] || (e[5] = (u) => v("inc", u)),
|
|
199
|
+
onPointerup: o,
|
|
200
|
+
onPointerleave: o,
|
|
201
|
+
onPointercancel: o,
|
|
202
|
+
onContextmenu: e[6] || (e[6] = a(() => {
|
|
203
|
+
}, ["prevent"]))
|
|
169
204
|
}, [
|
|
170
|
-
|
|
205
|
+
p(w, {
|
|
171
206
|
icon: "fluent:chevron-up-20-filled",
|
|
172
|
-
class:
|
|
207
|
+
class: r(t.size === "xs" || t.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5")
|
|
173
208
|
}, null, 8, ["class"])
|
|
174
|
-
],
|
|
175
|
-
|
|
209
|
+
], 40, D),
|
|
210
|
+
P("button", {
|
|
176
211
|
type: "button",
|
|
177
212
|
class: "flex-1 flex items-center justify-center hover:bg-muted/50 w-8",
|
|
178
|
-
disabled:
|
|
179
|
-
|
|
213
|
+
disabled: t.disabled || t.min !== void 0 && Number(d.value) <= t.min,
|
|
214
|
+
onPointerdown: e[7] || (e[7] = (u) => v("dec", u)),
|
|
215
|
+
onPointerup: o,
|
|
216
|
+
onPointerleave: o,
|
|
217
|
+
onPointercancel: o,
|
|
218
|
+
onContextmenu: e[8] || (e[8] = a(() => {
|
|
219
|
+
}, ["prevent"]))
|
|
180
220
|
}, [
|
|
181
|
-
|
|
221
|
+
p(w, {
|
|
182
222
|
icon: "fluent:chevron-down-20-filled",
|
|
183
|
-
class:
|
|
223
|
+
class: r(t.size === "xs" || t.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5")
|
|
184
224
|
}, null, 8, ["class"])
|
|
185
|
-
],
|
|
186
|
-
])) :
|
|
225
|
+
], 40, G)
|
|
226
|
+
])) : N("", !0)
|
|
187
227
|
], 2));
|
|
188
228
|
}
|
|
189
229
|
});
|
|
190
230
|
export {
|
|
191
|
-
|
|
231
|
+
O as default
|
|
192
232
|
};
|
|
@@ -2,35 +2,17 @@ import { ScreenProps } from './types';
|
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
5
|
-
title?(_:
|
|
6
|
-
description?(_:
|
|
7
|
-
'before-search'?(_:
|
|
8
|
-
actions?(_:
|
|
9
|
-
'after-add'?(_:
|
|
10
|
-
'custom-header'?(_:
|
|
11
|
-
'sub-header'?(_:
|
|
12
|
-
empty?(_:
|
|
13
|
-
table?(_:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
selectedRows: any[];
|
|
17
|
-
delete: (items: any[]) => void;
|
|
18
|
-
updateSelectedRows: (val: any[]) => any[];
|
|
19
|
-
}): any;
|
|
20
|
-
list?(_: {
|
|
21
|
-
data: any[];
|
|
22
|
-
loading: boolean;
|
|
23
|
-
selectedRows: any[];
|
|
24
|
-
delete: (items: any[]) => void;
|
|
25
|
-
updateSelectedRows: (val: any[]) => any[];
|
|
26
|
-
}): any;
|
|
27
|
-
grid?(_: {
|
|
28
|
-
data: any[];
|
|
29
|
-
loading: boolean;
|
|
30
|
-
selectedRows: any[];
|
|
31
|
-
delete: (items: any[]) => void;
|
|
32
|
-
updateSelectedRows: (val: any[]) => any[];
|
|
33
|
-
}): any;
|
|
5
|
+
title?(_: any): any;
|
|
6
|
+
description?(_: any): any;
|
|
7
|
+
'before-search'?(_: any): any;
|
|
8
|
+
actions?(_: any): any;
|
|
9
|
+
'after-add'?(_: any): any;
|
|
10
|
+
'custom-header'?(_: any): any;
|
|
11
|
+
'sub-header'?(_: any): any;
|
|
12
|
+
empty?(_: any): any;
|
|
13
|
+
table?(_: any): any;
|
|
14
|
+
list?(_: any): any;
|
|
15
|
+
grid?(_: any): any;
|
|
34
16
|
};
|
|
35
17
|
refs: {
|
|
36
18
|
importDataRef: {
|
|
@@ -143,6 +125,7 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
|
|
|
143
125
|
quickFilters: import('./types').ScreenQuickFilter[];
|
|
144
126
|
quickFilterKey: string;
|
|
145
127
|
quickFilterVariant: import('../Tabes').TabesVariant;
|
|
128
|
+
skipEmptyViews: string[];
|
|
146
129
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
147
130
|
importDataRef: {
|
|
148
131
|
$: import('vue').ComponentInternalInstance;
|