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,9 +1,9 @@
1
- import { defineComponent as K, ref as g, watch as R, computed as a, openBlock as c, createElementBlock as m, normalizeClass as o, createVNode as x, createCommentVNode as h, createElementVNode as y, withKeys as p, withModifiers as k } from "vue";
2
- import f from "./Icon.vue.js";
3
- const E = ["disabled"], q = ["value", "min", "max", "step", "placeholder", "disabled", "readonly", "onKeydown"], L = ["disabled"], M = {
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
- }, $ = ["disabled"], A = ["disabled"], H = /* @__PURE__ */ K({
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(e, { emit: N }) {
25
- const l = e, s = N, d = g(l.modelValue ?? "");
26
- R(
27
- () => l.modelValue,
28
- (t) => {
29
- t !== void 0 && (d.value = t);
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 z = g(null), r = a(() => {
33
- const t = {
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 t[l.size] || t.md;
41
- }), C = a(() => ({
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
- })[l.rounded] || "rounded-md"), V = a(() => ({
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
- })[l.rounded] || "rounded-l-md"), B = a(() => ({
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
- })[l.rounded] || "rounded-r-md"), S = a(() => [
65
+ })[n.rounded] || "rounded-r-md"), F = i(() => [
66
66
  "flex items-center w-full relative transition-all duration-200",
67
- l.disabled ? "opacity-50 cursor-not-allowed" : "",
68
- l.mode === "solid" ? "bg-muted" : "",
69
- l.mode === "outline" ? "border border-input bg-background" : "",
70
- l.mode === "ghost" ? "bg-transparent" : "",
71
- r.value.h,
72
- C.value
73
- ]), j = a(() => [
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
- l.variant === "split" ? "text-center" : "text-left pl-3",
75
+ n.variant === "split" ? "text-center" : "text-left pl-3",
76
76
  "placeholder:text-muted-foreground/50",
77
- r.value.text,
78
- l.disabled ? "cursor-not-allowed" : ""
79
- ]), w = a(() => {
80
- const t = "flex items-center justify-center transition-colors active:scale-95 shrink-0 select-none", n = l.disabled ? "" : "hover:text-primary hover:bg-muted/50";
81
- return l.size === "xs" || l.size, l.variant === "split" ? l.mode === "solid" ? [
82
- t,
83
- l.disabled ? "" : "hover:text-primary hover:bg-background/80",
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
- ] : [t, n, "h-full", "px-2"] : [t, n, "h-1/2 w-8 border-l border-input/50"];
86
- }), u = (t) => {
87
- if (l.disabled || l.readonly) return;
88
- let n = t;
89
- l.min !== void 0 && n < l.min && (n = l.min), l.max !== void 0 && n > l.max && (n = l.max), d.value = n, s("update:modelValue", n), s("change", n);
90
- }, b = () => {
91
- const t = Number(d.value) || 0;
92
- u(t + l.step);
93
- }, v = () => {
94
- const t = Number(d.value) || 0;
95
- u(t - l.step);
96
- }, F = (t) => {
97
- const n = t.target, i = parseFloat(n.value);
98
- if (isNaN(i)) {
99
- d.value = n.value;
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(i);
103
- }, I = (t) => {
104
- s("blur", t);
105
- const n = parseFloat(String(d.value));
106
- isNaN(n) ? u(l.min || 0) : u(n);
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 (t, n) => (c(), m("div", {
109
- class: o([S.value, "overflow-hidden"])
126
+ return L(() => {
127
+ o();
128
+ }), (l, e) => (b(), h("div", {
129
+ class: r([F.value, "overflow-hidden"])
110
130
  }, [
111
- e.variant === "split" ? (c(), m("button", {
131
+ t.variant === "split" ? (b(), h("button", {
112
132
  key: 0,
113
133
  type: "button",
114
- class: o([
115
- w.value,
116
- e.mode === "outline" ? "border-r border-input" : "",
117
- e.variant === "split" && e.mode !== "solid" ? V.value : ""
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: e.disabled || e.min !== void 0 && Number(d.value) <= e.min,
120
- onClick: v
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
- x(f, {
147
+ p(w, {
123
148
  icon: "lucide:minus",
124
- class: o(r.value.icon)
149
+ class: r(c.value.icon)
125
150
  }, null, 8, ["class"])
126
- ], 10, E)) : h("", !0),
127
- y("input", {
151
+ ], 42, M)) : N("", !0),
152
+ P("input", {
128
153
  ref_key: "inputRef",
129
- ref: z,
154
+ ref: B,
130
155
  type: "number",
131
156
  value: d.value,
132
- min: e.min,
133
- max: e.max,
134
- step: e.step,
135
- placeholder: e.placeholder,
136
- disabled: e.disabled,
137
- readonly: e.readonly,
138
- class: o(j.value),
139
- onInput: F,
140
- onFocus: n[0] || (n[0] = (i) => s("focus", i)),
141
- onBlur: I,
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
- p(k(b, ["prevent"]), ["up"]),
144
- p(k(v, ["prevent"]), ["down"])
168
+ z(a(y, ["prevent"]), ["up"]),
169
+ z(a(g, ["prevent"]), ["down"])
145
170
  ]
146
- }, null, 42, q),
147
- e.variant === "split" ? (c(), m("button", {
171
+ }, null, 42, U),
172
+ t.variant === "split" ? (b(), h("button", {
148
173
  key: 1,
149
174
  type: "button",
150
- class: o([
151
- w.value,
152
- e.mode === "outline" ? "border-l border-input" : "",
153
- e.variant === "split" && e.mode !== "solid" ? B.value : ""
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: e.disabled || e.max !== void 0 && Number(d.value) >= e.max,
156
- onClick: b
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
- x(f, {
188
+ p(w, {
159
189
  icon: "lucide:plus",
160
- class: o(r.value.icon)
190
+ class: r(c.value.icon)
161
191
  }, null, 8, ["class"])
162
- ], 10, L)) : h("", !0),
163
- e.variant === "stacked" ? (c(), m("div", M, [
164
- y("button", {
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: e.disabled || e.max !== void 0 && Number(d.value) >= e.max,
168
- onClick: b
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
- x(f, {
205
+ p(w, {
171
206
  icon: "fluent:chevron-up-20-filled",
172
- class: o(e.size === "xs" || e.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5")
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
- ], 8, $),
175
- y("button", {
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: e.disabled || e.min !== void 0 && Number(d.value) <= e.min,
179
- onClick: v
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
- x(f, {
221
+ p(w, {
182
222
  icon: "fluent:chevron-down-20-filled",
183
- class: o(e.size === "xs" || e.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5")
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
- ], 8, A)
186
- ])) : h("", !0)
225
+ ], 40, G)
226
+ ])) : N("", !0)
187
227
  ], 2));
188
228
  }
189
229
  });
190
230
  export {
191
- H as default
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?(_: {}): any;
6
- description?(_: {}): any;
7
- 'before-search'?(_: {}): any;
8
- actions?(_: {}): any;
9
- 'after-add'?(_: {}): any;
10
- 'custom-header'?(_: {}): any;
11
- 'sub-header'?(_: {}): any;
12
- empty?(_: {}): any;
13
- table?(_: {
14
- data: any[];
15
- loading: boolean;
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;