vlite3 0.9.1 → 0.9.3
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/Alert.vue.js +40 -38
- package/components/Carousel/Carousel.vue.d.ts +2 -2
- package/components/Carousel/Carousel.vue.js +2 -2
- package/components/Carousel/Carousel.vue2.js +1 -1
- package/components/Chat/ChatBubble.vue.d.ts +18 -0
- package/components/Chat/ChatInterface.vue.d.ts +45 -0
- package/components/Chat/index.d.ts +2 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataTable/DataTableRow.vue.js +1 -1
- package/components/DateTime/DateTime.vue.js +31 -0
- package/components/DateTime/DateTime.vue2.js +4 -0
- package/components/DateTime/index.d.ts +1 -0
- package/components/FilePicker/FilePicker.vue.d.ts +4 -1
- package/components/FilePicker/FilePicker.vue.js +189 -139
- package/components/Form/CustomFields.vue.d.ts +2 -0
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +121 -99
- package/components/Form/FormField.vue.js +3 -1
- package/components/Form/types.d.ts +1 -0
- package/components/List/ListFieldRow.vue.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/Screen.vue.d.ts +1 -0
- package/components/Screen/Screen.vue.js +112 -107
- package/components/Screen/ScreenFilter.vue.js +3 -2
- package/components/Screen/components/ScreenEmptyState.vue.js +11 -10
- package/components/Screen/components/ScreenHeaderTitle.vue.d.ts +2 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.js +28 -24
- package/components/Screen/components/ScreenQuickFilters.vue.js +1 -1
- package/components/Screen/types.d.ts +3 -0
- package/core/config.d.ts +2 -2
- package/core/config.js +7 -7
- package/core/index.js +3 -3
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/package.json +2 -2
- package/style.css +9 -10
- package/types/config.type.d.ts +1 -1
- package/components/Date/Date.vue.js +0 -21
- package/components/Date/Date.vue2.js +0 -4
- package/components/Date/index.d.ts +0 -1
- /package/components/{Date/Date.vue.d.ts → DateTime/DateTime.vue.d.ts} +0 -0
package/components/Alert.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as V, ref as B, computed as t, useSlots as N, openBlock as
|
|
2
|
-
import
|
|
3
|
-
import { $t as
|
|
1
|
+
import { defineComponent as V, ref as B, computed as t, useSlots as N, openBlock as r, createElementBlock as i, normalizeClass as l, renderSlot as p, createBlock as S, createCommentVNode as a, createElementVNode as v, toDisplayString as f, createTextVNode as T, createVNode as j } from "vue";
|
|
2
|
+
import b from "./Icon.vue.js";
|
|
3
|
+
import { $t as m } from "../utils/i18n.js";
|
|
4
4
|
const D = ["role"], E = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "text-sm opacity-90 [&_p]:leading-relaxed"
|
|
@@ -18,67 +18,69 @@ const D = ["role"], E = {
|
|
|
18
18
|
class: { default: "" }
|
|
19
19
|
},
|
|
20
20
|
emits: ["close"],
|
|
21
|
-
setup(s, { emit:
|
|
22
|
-
const e = s,
|
|
23
|
-
u.value = !1,
|
|
24
|
-
}, d = t(() => e.titleI18n ?
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
setup(s, { emit: y }) {
|
|
22
|
+
const e = s, x = y, u = B(!0), h = () => {
|
|
23
|
+
u.value = !1, x("close");
|
|
24
|
+
}, d = t(() => e.titleI18n ? m(e.titleI18n) : e.title), c = t(
|
|
25
|
+
() => e.descriptionI18n ? m(e.descriptionI18n) : e.description
|
|
26
|
+
), k = t(() => ({
|
|
27
|
+
danger: "bg-danger-subtle text-danger-subtle-fg border-danger-subtle-border/20",
|
|
28
|
+
primary: "bg-primary-light text-primary-light-fg border-primary/10",
|
|
29
|
+
success: "bg-success-subtle text-success-subtle-fg border-success-subtle-border/20",
|
|
30
|
+
warning: "bg-warning-subtle text-warning-subtle-fg border-warning-subtle-border/20"
|
|
29
31
|
})[e.variant]), w = t(() => ({
|
|
30
|
-
primary: "text-primary!",
|
|
31
|
-
success: "text-success-
|
|
32
|
-
warning: "text-warning-
|
|
33
|
-
danger: "text-danger-
|
|
34
|
-
})[e.variant]),
|
|
32
|
+
primary: "text-primary-light-fg!",
|
|
33
|
+
success: "text-success-subtle-fg!",
|
|
34
|
+
warning: "text-warning-subtle-fg!",
|
|
35
|
+
danger: "text-danger-subtle-fg!"
|
|
36
|
+
})[e.variant]), o = t(() => !c.value && !N().default), C = t(() => [
|
|
35
37
|
"relative w-full rounded-lg border px-4 [&>svg]:absolute [&>svg]:left-4 [&>svg]:text-foreground",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
o.value ? "py-3" : "pt-4 pb-2",
|
|
39
|
+
o.value ? "[&>svg]:top-1/2 [&>svg]:-translate-y-1/2" : "[&>svg]:top-4 top-4 [&>svg+div]:translate-y-[-3px]",
|
|
40
|
+
k.value,
|
|
39
41
|
e.class
|
|
40
42
|
].join(" ")), I = t(() => [
|
|
41
43
|
"font-medium leading-none tracking-tight text-inherit!",
|
|
42
|
-
|
|
44
|
+
o.value ? "" : "mb-1"
|
|
43
45
|
].join(" ")), $ = t(() => e.role ? e.role : ["danger", "warning"].includes(e.variant) ? "alert" : "status");
|
|
44
|
-
return (n, g) => u.value ? (
|
|
46
|
+
return (n, g) => u.value ? (r(), i("div", {
|
|
45
47
|
key: 0,
|
|
46
|
-
class:
|
|
48
|
+
class: l(C.value),
|
|
47
49
|
role: $.value
|
|
48
50
|
}, [
|
|
49
51
|
p(n.$slots, "icon", {}, () => [
|
|
50
|
-
s.icon ? (
|
|
52
|
+
s.icon ? (r(), S(b, {
|
|
51
53
|
key: 0,
|
|
52
54
|
icon: s.icon,
|
|
53
|
-
class:
|
|
54
|
-
}, null, 8, ["icon", "class"])) :
|
|
55
|
+
class: l(["h-4 w-4", w.value])
|
|
56
|
+
}, null, 8, ["icon", "class"])) : a("", !0)
|
|
55
57
|
]),
|
|
56
58
|
v("div", {
|
|
57
|
-
class:
|
|
59
|
+
class: l({ "pl-7": s.icon || n.$slots.icon, "pr-6": s.closable })
|
|
58
60
|
}, [
|
|
59
|
-
d.value ? (
|
|
61
|
+
d.value ? (r(), i("h5", {
|
|
60
62
|
key: 0,
|
|
61
|
-
class:
|
|
62
|
-
},
|
|
63
|
-
c.value || n.$slots.default ? (
|
|
63
|
+
class: l(I.value)
|
|
64
|
+
}, f(d.value), 3)) : a("", !0),
|
|
65
|
+
c.value || n.$slots.default ? (r(), i("div", E, [
|
|
64
66
|
p(n.$slots, "default", {}, () => [
|
|
65
|
-
T(
|
|
67
|
+
T(f(c.value), 1)
|
|
66
68
|
])
|
|
67
|
-
])) :
|
|
69
|
+
])) : a("", !0)
|
|
68
70
|
], 2),
|
|
69
|
-
s.closable ? (
|
|
71
|
+
s.closable ? (r(), i("button", {
|
|
70
72
|
key: 0,
|
|
71
73
|
type: "button",
|
|
72
|
-
onClick:
|
|
73
|
-
class:
|
|
74
|
+
onClick: h,
|
|
75
|
+
class: l(["absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", [o.value ? "top-1/2 -translate-y-1/2" : "top-4"]])
|
|
74
76
|
}, [
|
|
75
|
-
j(
|
|
77
|
+
j(b, {
|
|
76
78
|
icon: "lucide:x",
|
|
77
79
|
class: "h-4 w-4"
|
|
78
80
|
}),
|
|
79
81
|
g[0] || (g[0] = v("span", { class: "sr-only" }, "Close", -1))
|
|
80
|
-
], 2)) :
|
|
81
|
-
], 10, D)) :
|
|
82
|
+
], 2)) : a("", !0)
|
|
83
|
+
], 10, D)) : a("", !0);
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
export {
|
|
@@ -352,7 +352,7 @@ declare function __VLS_template(): {
|
|
|
352
352
|
};
|
|
353
353
|
}>> & Readonly<{
|
|
354
354
|
"onSlide-change"?: ((index: number) => any) | undefined;
|
|
355
|
-
}>, "focus" | "state" | "direction" | "
|
|
355
|
+
}>, "focus" | "state" | "direction" | "draggable" | "easing" | "goNext" | "gap" | "pagination" | "paginationSize" | "paginationVisibility" | "paginationHoverInitialTimeout" | "paginationHoverEdgeThreshold" | "autoPlay" | "autoPlayInterval" | "itemsToShow" | "speed" | "mousewheel" | "loop" | "currentItem" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "autoFocus" | "wheelOptions" | "canGoNext" | "canGoPrev"> & import('vue').ShallowUnwrapRef<{
|
|
356
356
|
goToSlide: (index: number, smooth?: boolean) => void;
|
|
357
357
|
goNext: (smooth?: boolean) => void;
|
|
358
358
|
goPrev: (smooth?: boolean) => void;
|
|
@@ -778,7 +778,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
778
778
|
};
|
|
779
779
|
}>> & Readonly<{
|
|
780
780
|
"onSlide-change"?: ((index: number) => any) | undefined;
|
|
781
|
-
}>, "focus" | "state" | "direction" | "
|
|
781
|
+
}>, "focus" | "state" | "direction" | "draggable" | "easing" | "goNext" | "gap" | "pagination" | "paginationSize" | "paginationVisibility" | "paginationHoverInitialTimeout" | "paginationHoverEdgeThreshold" | "autoPlay" | "autoPlayInterval" | "itemsToShow" | "speed" | "mousewheel" | "loop" | "currentItem" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "autoFocus" | "wheelOptions" | "canGoNext" | "canGoPrev"> & import('vue').ShallowUnwrapRef<{
|
|
782
782
|
goToSlide: (index: number, smooth?: boolean) => void;
|
|
783
783
|
goNext: (smooth?: boolean) => void;
|
|
784
784
|
goPrev: (smooth?: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Carousel.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e8fba320"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -6,7 +6,7 @@ const w = { class: "carousel-wrapper" }, V = /* @__PURE__ */ g({
|
|
|
6
6
|
props: {
|
|
7
7
|
data: { default: () => [] },
|
|
8
8
|
pagination: { type: [String, Array, Boolean], default: "dots" },
|
|
9
|
-
paginationSize: { default: "
|
|
9
|
+
paginationSize: { default: "sm" },
|
|
10
10
|
paginationPosition: { default: "bottom-center" },
|
|
11
11
|
paginationVisibility: {},
|
|
12
12
|
paginationHoverInitialTimeout: {},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChatMessage } from './ChatInterface.vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: ChatMessage;
|
|
4
|
+
isSender: boolean;
|
|
5
|
+
showAvatar: boolean;
|
|
6
|
+
showUserInfo: boolean;
|
|
7
|
+
showTimestamp: boolean;
|
|
8
|
+
allowDeleteAll?: boolean;
|
|
9
|
+
allowEditAll?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
+
delete: (id: string | number) => any;
|
|
13
|
+
edit: (message: ChatMessage) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onDelete?: (id: string | number) => any;
|
|
16
|
+
onEdit?: (message: ChatMessage) => any;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface ChatMessage {
|
|
2
|
+
id: string | number;
|
|
3
|
+
text: string;
|
|
4
|
+
senderId: string | number;
|
|
5
|
+
senderName?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
timestamp?: string | Date;
|
|
8
|
+
isEdited?: boolean;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
data: ChatMessage[];
|
|
13
|
+
currentUserId: string | number;
|
|
14
|
+
showAvatar?: boolean;
|
|
15
|
+
showUserInfo?: boolean;
|
|
16
|
+
showTimestamp?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
isLoadingMore?: boolean;
|
|
19
|
+
allowDeleteAll?: boolean;
|
|
20
|
+
allowEditAll?: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
+
delete: (id: string | number) => any;
|
|
24
|
+
add: (text: string) => any;
|
|
25
|
+
refetch: () => any;
|
|
26
|
+
edit: (message: ChatMessage) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onDelete?: (id: string | number) => any;
|
|
29
|
+
onAdd?: (text: string) => any;
|
|
30
|
+
onRefetch?: () => any;
|
|
31
|
+
onEdit?: (message: ChatMessage) => any;
|
|
32
|
+
}>, {
|
|
33
|
+
placeholder: string;
|
|
34
|
+
isLoadingMore: boolean;
|
|
35
|
+
showAvatar: boolean;
|
|
36
|
+
showUserInfo: boolean;
|
|
37
|
+
showTimestamp: boolean;
|
|
38
|
+
allowDeleteAll: boolean;
|
|
39
|
+
allowEditAll: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
messageListRef: HTMLDivElement;
|
|
42
|
+
observerTargetRef: HTMLDivElement;
|
|
43
|
+
textareaRef: HTMLTextAreaElement;
|
|
44
|
+
}, HTMLDivElement>;
|
|
45
|
+
export default _default;
|
|
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/60 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, computed as S, openBlock as s, createElementBlock as d, normalizeClass as u, withModifiers as B, createElementVNode as M, createVNode as p, createCommentVNode as N, Fragment as V, renderList as z, renderSlot as F, createBlock as m } from "vue";
|
|
2
2
|
import L from "../CheckBox.vue.js";
|
|
3
3
|
import $ from "../Price/Price.vue.js";
|
|
4
|
-
import T from "../
|
|
4
|
+
import T from "../DateTime/DateTime.vue.js";
|
|
5
5
|
const E = ["data-state"], H = { class: "flex items-center justify-center" }, I = ["title", "innerHTML"], j = /* @__PURE__ */ C({
|
|
6
6
|
__name: "DataTableRow",
|
|
7
7
|
props: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as D, computed as n, openBlock as _, createElementBlock as g, toDisplayString as h } from "vue";
|
|
2
|
+
import s from "dayjs";
|
|
3
|
+
import { useVLiteConfig as y } from "../../core/config.js";
|
|
4
|
+
const V = /* @__PURE__ */ D({
|
|
5
|
+
__name: "DateTime",
|
|
6
|
+
props: {
|
|
7
|
+
value: {},
|
|
8
|
+
format: {}
|
|
9
|
+
},
|
|
10
|
+
setup(m) {
|
|
11
|
+
const t = m, i = y(), c = n(() => t.format || i?.components?.datetime?.format || "MM/DD/YYYY"), f = n(() => {
|
|
12
|
+
if (!t.value) return "--";
|
|
13
|
+
if (typeof t.value == "string") {
|
|
14
|
+
const e = t.value.trim();
|
|
15
|
+
if (/^([01]?\d|2[0-3]):([0-5]\d)(:([0-5]\d))?$/.test(e)) {
|
|
16
|
+
const r = e.split(":"), u = r[0].padStart(2, "0"), l = r[1], p = r[2] || "00", d = `1970-01-01T${u}:${l}:${p}`, a = s(d);
|
|
17
|
+
if (a.isValid()) {
|
|
18
|
+
const v = t.format || "h:mm A";
|
|
19
|
+
return a.format(v);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const o = s(t.value);
|
|
24
|
+
return o.isValid() ? o.format(c.value) : String(t.value);
|
|
25
|
+
});
|
|
26
|
+
return (o, e) => (_(), g("span", null, h(f.value), 1));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
V as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DateTime } from './DateTime.vue';
|
|
@@ -3,8 +3,9 @@ export interface FilePickerValue {
|
|
|
3
3
|
fileName: string;
|
|
4
4
|
fileType: string;
|
|
5
5
|
fileSize: number;
|
|
6
|
-
file: File;
|
|
6
|
+
file: File | null;
|
|
7
7
|
base64: string;
|
|
8
|
+
isUrl?: boolean;
|
|
8
9
|
}
|
|
9
10
|
interface Props {
|
|
10
11
|
modelValue?: FilePickerValue | FilePickerValue[] | null;
|
|
@@ -21,6 +22,7 @@ interface Props {
|
|
|
21
22
|
textI18n?: string;
|
|
22
23
|
size?: InputSize;
|
|
23
24
|
rounded?: InputRounded;
|
|
25
|
+
allowRename?: boolean;
|
|
24
26
|
}
|
|
25
27
|
declare function __VLS_template(): {
|
|
26
28
|
attrs: Partial<{}>;
|
|
@@ -56,6 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
56
58
|
modelValue: FilePickerValue | FilePickerValue[] | null;
|
|
57
59
|
fileTypes: string[];
|
|
58
60
|
returnFormat: "file" | "base64";
|
|
61
|
+
allowRename: boolean;
|
|
59
62
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
60
63
|
fileInput: HTMLInputElement;
|
|
61
64
|
}, HTMLDivElement>;
|