vlite3 0.8.11 → 0.9.2
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 +6 -0
- package/components/AttachmentsList/AttachmentsList.vue.js +82 -0
- package/components/AttachmentsList/AttachmentsList.vue2.js +4 -0
- package/components/AttachmentsList/index.d.ts +2 -0
- package/components/AttachmentsList/types.d.ts +11 -0
- package/components/Button.vue.js +6 -6
- 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/DataList/DataList.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DataTable/DataTable.vue.js +22 -22
- package/components/DataTable/types.d.ts +1 -1
- package/components/DatePicker.vue.d.ts +3 -2
- package/components/DatePicker.vue.js +1 -1
- package/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/components/Dropdown/Dropdown.vue.js +106 -90
- package/components/Dropdown/DropdownItem.vue.js +8 -8
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +1 -1
- package/components/ExportData/ExportData.vue.d.ts +1 -1
- package/components/FilePicker/FilePicker.vue.d.ts +4 -1
- package/components/FilePicker/FilePicker.vue.js +189 -139
- package/components/FilePreview/FilePreview.vue.d.ts +5 -0
- package/components/FilePreview/FilePreview.vue.js +27 -0
- package/components/FilePreview/FilePreview.vue2.js +4 -0
- package/components/FilePreview/index.d.ts +2 -0
- package/components/FilePreview/types.d.ts +5 -0
- package/components/Form/FormField.vue.js +3 -1
- package/components/Form/composables/useForm.js +50 -47
- package/components/Input.vue.d.ts +1 -0
- package/components/Input.vue.js +18 -15
- package/components/Modal.vue.js +2 -2
- package/components/Modal.vue2.js +31 -31
- package/components/MultiSelect/MultiSelect.vue.js +92 -84
- package/components/Navbar/Navbar.vue.js +61 -60
- package/components/Screen/Screen.vue.d.ts +200 -7
- package/components/Screen/Screen.vue.js +306 -502
- package/components/Screen/ScreenFilter.vue.js +45 -42
- package/components/Screen/components/ScreenAddAction.vue.d.ts +15 -0
- package/components/Screen/components/ScreenAddAction.vue.js +107 -0
- package/components/Screen/components/ScreenAddAction.vue2.js +4 -0
- package/components/Screen/components/ScreenEmptyState.vue.d.ts +14 -0
- package/components/Screen/components/ScreenEmptyState.vue.js +105 -0
- package/components/Screen/components/ScreenEmptyState.vue2.js +4 -0
- package/components/Screen/components/ScreenExportModal.vue.d.ts +49 -0
- package/components/Screen/components/ScreenExportModal.vue.js +83 -0
- package/components/Screen/components/ScreenExportModal.vue2.js +4 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.d.ts +28 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.js +57 -0
- package/components/Screen/components/ScreenHeaderTitle.vue2.js +4 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue.d.ts +10 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue.js +43 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue2.js +4 -0
- package/components/Screen/components/ScreenQuickFilters.vue.d.ts +15 -0
- package/components/Screen/components/ScreenQuickFilters.vue.js +36 -0
- package/components/Screen/components/ScreenQuickFilters.vue2.js +4 -0
- package/components/Screen/components/ScreenViewToggle.vue.d.ts +9 -0
- package/components/Screen/components/ScreenViewToggle.vue.js +48 -0
- package/components/Screen/components/ScreenViewToggle.vue2.js +4 -0
- package/components/Screen/index.d.ts +1 -0
- package/components/Screen/types.d.ts +41 -2
- package/components/SidePanel.vue.js +1 -1
- package/components/SidePanel.vue2.js +7 -7
- package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
- package/components/Stats/Stats.vue.js +50 -49
- package/components/StatusChip/StatusChip.vue.d.ts +2 -2
- package/components/StatusChip/StatusChip.vue.js +15 -14
- package/components/StatusChip/status-map.d.ts +2 -1
- package/components/StatusChip/status-map.js +16 -6
- package/components/Tabes/Tabes.vue.d.ts +1 -1
- package/components/Tabes/Tabes.vue.js +5 -143
- package/components/Tabes/Tabes.vue2.js +144 -2
- package/components/Timeline/TimelineIndicator.vue.js +6 -6
- package/components/Workbook/Sheet.vue.d.ts +1 -1
- package/core/config.d.ts +8 -0
- package/core/config.js +10 -6
- package/core/index.js +28 -20
- package/index.d.ts +2 -0
- package/index.js +209 -203
- package/package.json +3 -2
- package/style.css +80 -6
- package/types/config.type.d.ts +10 -0
- package/types/form.type.d.ts +1 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AttachmentsListProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AttachmentsListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AttachmentsListProps> & Readonly<{}>, {
|
|
3
|
+
canDownload: boolean;
|
|
4
|
+
canView: boolean;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as g, computed as y, openBlock as o, createElementBlock as r, Fragment as v, renderList as b, createElementVNode as n, createVNode as u, toDisplayString as d, createBlock as f, unref as l, withCtx as k, createCommentVNode as h } from "vue";
|
|
2
|
+
import p from "../Button.vue.js";
|
|
3
|
+
import B from "../Modal.vue.js";
|
|
4
|
+
import N from "../Icon.vue.js";
|
|
5
|
+
import { $t as x } from "../../utils/i18n.js";
|
|
6
|
+
import { downloadFile as z } from "../../utils/functions.js";
|
|
7
|
+
import D from "../FilePreview/FilePreview.vue.js";
|
|
8
|
+
const M = { class: "w-full" }, A = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "flex flex-col gap-2"
|
|
11
|
+
}, C = { class: "flex items-center gap-3 overflow-hidden" }, F = { class: "w-10 h-10 rounded-md bg-primary/10 flex items-center justify-center text-primary shrink-0" }, V = { class: "flex flex-col overflow-hidden" }, $ = ["title"], U = { class: "text-xs text-muted-foreground" }, P = { class: "flex items-center gap-1 shrink-0" }, S = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "text-sm text-muted-foreground italic bg-muted/10 p-4 rounded-lg border border-dashed border-border text-center"
|
|
14
|
+
}, J = /* @__PURE__ */ g({
|
|
15
|
+
__name: "AttachmentsList",
|
|
16
|
+
props: {
|
|
17
|
+
attachments: {},
|
|
18
|
+
canView: { type: Boolean, default: !0 },
|
|
19
|
+
canDownload: { type: Boolean, default: !0 }
|
|
20
|
+
},
|
|
21
|
+
setup(a) {
|
|
22
|
+
const s = a, m = y(() => s.attachments ? Array.isArray(s.attachments) ? s.attachments : [s.attachments] : []), _ = (t) => {
|
|
23
|
+
if (!t) return "0 Bytes";
|
|
24
|
+
const c = 1024, e = ["Bytes", "KB", "MB", "GB"], i = Math.floor(Math.log(t) / Math.log(c));
|
|
25
|
+
return parseFloat((t / Math.pow(c, i)).toFixed(2)) + " " + e[i];
|
|
26
|
+
}, w = async (t) => {
|
|
27
|
+
t.fileUrl && await z(t.fileUrl, t.fileName || "attachment");
|
|
28
|
+
};
|
|
29
|
+
return (t, c) => (o(), r("div", M, [
|
|
30
|
+
m.value.length > 0 ? (o(), r("div", A, [
|
|
31
|
+
(o(!0), r(v, null, b(m.value, (e, i) => (o(), r("div", {
|
|
32
|
+
key: i,
|
|
33
|
+
class: "flex items-center justify-between p-3 border border-border rounded-lg bg-muted/20 hover:bg-muted/40 transition-colors"
|
|
34
|
+
}, [
|
|
35
|
+
n("div", C, [
|
|
36
|
+
n("div", F, [
|
|
37
|
+
u(N, {
|
|
38
|
+
icon: "lucide:file-text",
|
|
39
|
+
class: "w-5 h-5"
|
|
40
|
+
})
|
|
41
|
+
]),
|
|
42
|
+
n("div", V, [
|
|
43
|
+
n("span", {
|
|
44
|
+
class: "text-sm font-medium text-foreground truncate",
|
|
45
|
+
title: e.fileName
|
|
46
|
+
}, d(e.fileName || "Unnamed File"), 9, $),
|
|
47
|
+
n("span", U, d(_(e.fileSize)), 1)
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
n("div", P, [
|
|
51
|
+
a.canView ? (o(), f(B, {
|
|
52
|
+
key: 0,
|
|
53
|
+
title: e.fileName || l(x)("common.words.preview", "Preview"),
|
|
54
|
+
"max-width": "max-w-3xl",
|
|
55
|
+
body: l(D),
|
|
56
|
+
bodyProps: { url: e.fileUrl, name: e.fileName, canDownload: a.canDownload }
|
|
57
|
+
}, {
|
|
58
|
+
trigger: k(() => [
|
|
59
|
+
u(p, {
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "sm",
|
|
62
|
+
icon: "lucide:eye"
|
|
63
|
+
})
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["title", "body", "bodyProps"])) : h("", !0),
|
|
67
|
+
a.canDownload ? (o(), f(p, {
|
|
68
|
+
key: 1,
|
|
69
|
+
variant: "ghost",
|
|
70
|
+
size: "sm",
|
|
71
|
+
icon: "lucide:download",
|
|
72
|
+
onClick: (j) => w(e)
|
|
73
|
+
}, null, 8, ["onClick"])) : h("", !0)
|
|
74
|
+
])
|
|
75
|
+
]))), 128))
|
|
76
|
+
])) : (o(), r("div", S, d(l(x)("common.words.noAttachments", "No attachments found.")), 1))
|
|
77
|
+
]));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
J as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AttachmentItem {
|
|
2
|
+
fileName?: string;
|
|
3
|
+
fileSize?: number;
|
|
4
|
+
fileUrl: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export interface AttachmentsListProps {
|
|
8
|
+
attachments?: AttachmentItem | AttachmentItem[];
|
|
9
|
+
canView?: boolean;
|
|
10
|
+
canDownload?: boolean;
|
|
11
|
+
}
|
package/components/Button.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as o, useSlots as R, inject as S, withDirectives as G, openBlock as s, createElementBlock as h, normalizeClass as r, createBlock as u, createCommentVNode as m, renderSlot as
|
|
1
|
+
import { defineComponent as B, computed as o, useSlots as R, inject as S, withDirectives as G, openBlock as s, createElementBlock as h, normalizeClass as r, createBlock as u, createCommentVNode as m, renderSlot as x, createTextVNode as b, toDisplayString as f, unref as $ } from "vue";
|
|
2
2
|
import g from "./Icon.vue.js";
|
|
3
3
|
import { vRipple as j } from "../directives/vRipple.js";
|
|
4
4
|
import { $t as V } from "../utils/i18n.js";
|
|
@@ -25,7 +25,7 @@ const D = ["type", "disabled"], q = /* @__PURE__ */ B({
|
|
|
25
25
|
const t = e, a = o(() => t.textI18n ? V(t.textI18n) : t.text), v = R(), l = o(
|
|
26
26
|
() => t?.asIcon || t.icon && !a.value && !v.default
|
|
27
27
|
), p = S("buttonGroup", null), w = o(() => !!p?.isInGroup), y = o(() => {
|
|
28
|
-
const n = "inline-flex items-center justify-center whitespace-nowrap text-sm font-medium
|
|
28
|
+
const n = "inline-flex items-center justify-center whitespace-nowrap text-sm font-medium disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] cursor-pointer gap-2", i = {
|
|
29
29
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
30
30
|
"primary-light": "bg-primary-light text-primary-fg-light hover:bg-primary/20",
|
|
31
31
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
@@ -121,11 +121,11 @@ const D = ["type", "disabled"], q = /* @__PURE__ */ B({
|
|
|
121
121
|
key: 2,
|
|
122
122
|
class: r(e.textClass)
|
|
123
123
|
}, [
|
|
124
|
-
|
|
125
|
-
f(
|
|
124
|
+
x(n.$slots, "default", {}, () => [
|
|
125
|
+
b(f(a.value), 1)
|
|
126
126
|
])
|
|
127
|
-
], 2)) :
|
|
128
|
-
f(
|
|
127
|
+
], 2)) : x(n.$slots, "default", { key: 3 }, () => [
|
|
128
|
+
b(f(a.value), 1)
|
|
129
129
|
]),
|
|
130
130
|
e.iconRight && !e.loading ? (s(), u(g, {
|
|
131
131
|
key: 4,
|
|
@@ -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;
|
|
@@ -33,8 +33,8 @@ declare const __VLS_component: import('vue').DefineComponent<DataListProps, {},
|
|
|
33
33
|
data: any[];
|
|
34
34
|
loading: boolean;
|
|
35
35
|
className: string;
|
|
36
|
-
paginationProps: import('./types').DataListMetaInfo;
|
|
37
36
|
emptyIcon: string;
|
|
37
|
+
paginationProps: import('./types').DataListMetaInfo;
|
|
38
38
|
itemProps: Record<string, any>;
|
|
39
39
|
showPagination: boolean;
|
|
40
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -37,15 +37,15 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
37
37
|
compact: boolean;
|
|
38
38
|
loading: boolean;
|
|
39
39
|
rows: any[];
|
|
40
|
-
selectable: boolean;
|
|
41
40
|
showSearch: boolean;
|
|
42
41
|
headers: TableHeader[];
|
|
43
|
-
paginationProps: import('./types').DataTablePaginationProps;
|
|
44
42
|
emptyIcon: string;
|
|
43
|
+
paginationProps: import('./types').DataTablePaginationProps;
|
|
44
|
+
hideSelectable: boolean;
|
|
45
|
+
selectedRows: any[];
|
|
45
46
|
showPagination: boolean;
|
|
46
47
|
keyField: string;
|
|
47
48
|
hoverable: boolean;
|
|
48
|
-
selectedRows: any[];
|
|
49
49
|
bordered: boolean;
|
|
50
50
|
sortable: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as pe, inject as ye, computed as r, ref as y, watch as g, openBlock as i, createElementBlock as m, createBlock as F, normalizeClass as T, createSlots as K, withCtx as D, renderSlot as x, createVNode as $, createCommentVNode as z, createElementVNode as f, Fragment as A, renderList as B, normalizeStyle as Y, isMemoSame as W, mergeProps as X, unref as q } from "vue";
|
|
2
2
|
import we from "../CheckBox.vue.js";
|
|
3
3
|
import Pe from "../Button.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import Se from "../ConfirmationModal.vue.js";
|
|
5
|
+
import ke from "../Pagination/Pagination.vue.js";
|
|
6
|
+
import Ce from "../Empty/Empty.vue.js";
|
|
7
7
|
import Ie from "./DataTableHeader.vue.js";
|
|
8
8
|
import Te from "./DataTableRow.vue.js";
|
|
9
9
|
import De from "./DataTableToolbar.vue.js";
|
|
@@ -32,7 +32,7 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
32
32
|
headers: { default: () => [] },
|
|
33
33
|
keyField: { default: "auto" },
|
|
34
34
|
loading: { type: Boolean, default: !1 },
|
|
35
|
-
|
|
35
|
+
hideSelectable: { type: Boolean, default: !1 },
|
|
36
36
|
emptyTitle: {},
|
|
37
37
|
emptyTitleI18n: {},
|
|
38
38
|
emptyDescription: {},
|
|
@@ -69,9 +69,9 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
69
69
|
if (n in e[0]) return n;
|
|
70
70
|
}
|
|
71
71
|
return "_id";
|
|
72
|
-
}, Q = (e) => e.sortKey || e.field, a = o, b = G, N = ye(xe, null), j = r(() => N?.disableSearch ? !1 : a.showSearch), E = r(() => a.
|
|
72
|
+
}, Q = (e) => e.sortKey || e.field, a = o, b = G, N = ye(xe, null), j = r(() => N?.disableSearch ? !1 : a.showSearch), E = r(() => !a.hideSelectable || !!N?.forceSelectable), d = r(() => J(a.rows, a.keyField)), u = y({ field: "", order: "" }), P = y(
|
|
73
73
|
a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10
|
|
74
|
-
), h = y(a.pageInfo?.currentPage || 1), p = y(a.search || ""),
|
|
74
|
+
), h = y(a.pageInfo?.currentPage || 1), p = y(a.search || ""), S = y(!1), Z = r(() => a.loading);
|
|
75
75
|
g(
|
|
76
76
|
() => a.search,
|
|
77
77
|
(e) => {
|
|
@@ -140,7 +140,7 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
140
140
|
}, oe = (e) => {
|
|
141
141
|
P.value = e, h.value = 1, b("update:itemsPerPage", e), R();
|
|
142
142
|
}, se = (e) => b("rowClick", e), ne = () => {
|
|
143
|
-
b("delete", _.value),
|
|
143
|
+
b("delete", _.value), S.value = !1;
|
|
144
144
|
};
|
|
145
145
|
let U = null;
|
|
146
146
|
const R = () => {
|
|
@@ -210,7 +210,7 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
210
210
|
variant: "outline",
|
|
211
211
|
size: "lg",
|
|
212
212
|
icon: "lucide:trash-2",
|
|
213
|
-
onClick: t[0] || (t[0] = (l) =>
|
|
213
|
+
onClick: t[0] || (t[0] = (l) => S.value = !0)
|
|
214
214
|
})
|
|
215
215
|
]),
|
|
216
216
|
key: "1"
|
|
@@ -261,9 +261,9 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
261
261
|
], 2),
|
|
262
262
|
f("tbody", Ae, [
|
|
263
263
|
Z.value ? (i(!0), m(A, { key: 0 }, B(Math.min(P.value, 15), (l, n, ge, v) => {
|
|
264
|
-
const
|
|
265
|
-
if (v && v.key === "skeleton-" + l && W(v,
|
|
266
|
-
const
|
|
264
|
+
const k = [];
|
|
265
|
+
if (v && v.key === "skeleton-" + l && W(v, k)) return v;
|
|
266
|
+
const C = (i(), m("tr", {
|
|
267
267
|
key: "skeleton-" + l,
|
|
268
268
|
class: "border-b border-border/70 bg-background transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"
|
|
269
269
|
}, [
|
|
@@ -282,17 +282,17 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
282
282
|
}, null, 4)
|
|
283
283
|
], 2))), 128))
|
|
284
284
|
]));
|
|
285
|
-
return
|
|
285
|
+
return C.memo = k, C;
|
|
286
286
|
}, t, 2), 128)) : o.rows.length > 0 ? (i(!0), m(A, { key: 1 }, B(o.rows, (l, n, ge, v) => {
|
|
287
|
-
const
|
|
287
|
+
const k = [
|
|
288
288
|
l,
|
|
289
289
|
s.value.has(c(l, d.value)),
|
|
290
290
|
o.compact,
|
|
291
291
|
o.striped,
|
|
292
292
|
o.hoverable
|
|
293
293
|
];
|
|
294
|
-
if (v && v.key === c(l, d.value) && W(v,
|
|
295
|
-
const
|
|
294
|
+
if (v && v.key === c(l, d.value) && W(v, k)) return v;
|
|
295
|
+
const C = (i(), F(Te, {
|
|
296
296
|
key: c(l, d.value),
|
|
297
297
|
row: l,
|
|
298
298
|
headers: o.headers,
|
|
@@ -314,14 +314,14 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
314
314
|
])
|
|
315
315
|
}))
|
|
316
316
|
]), 1032, ["row", "headers", "index", "key-field", "selectable", "is-selected", "hoverable", "striped", "compact"]));
|
|
317
|
-
return
|
|
317
|
+
return C.memo = k, C;
|
|
318
318
|
}, t, 4), 128)) : (i(), m("tr", Ve, [
|
|
319
319
|
f("td", {
|
|
320
320
|
colspan: E.value ? o.headers.length + 1 : o.headers.length,
|
|
321
321
|
class: "align-middle hover:bg-transparent"
|
|
322
322
|
}, [
|
|
323
323
|
x(e.$slots, "empty", {}, () => [
|
|
324
|
-
$(q(
|
|
324
|
+
$(q(Ce), {
|
|
325
325
|
title: ce.value,
|
|
326
326
|
description: ue.value,
|
|
327
327
|
icon: o.emptyIcon,
|
|
@@ -343,7 +343,7 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
343
343
|
])
|
|
344
344
|
], 2),
|
|
345
345
|
o.showPagination && o.pageInfo && o.pageInfo.totalPages > 1 ? (i(), m("div", Ue, [
|
|
346
|
-
$(q(
|
|
346
|
+
$(q(ke), X({
|
|
347
347
|
"current-page": h.value,
|
|
348
348
|
"total-pages": o.pageInfo.totalPages,
|
|
349
349
|
"total-items": o.pageInfo.totalItems
|
|
@@ -352,16 +352,16 @@ const $e = { class: "space-y-6.5" }, Be = { class: "overflow-x-auto w-full" }, E
|
|
|
352
352
|
"onUpdate:itemsPerPage": oe
|
|
353
353
|
}), null, 16, ["current-page", "total-pages", "total-items"])
|
|
354
354
|
])) : z("", !0),
|
|
355
|
-
$(
|
|
356
|
-
show:
|
|
357
|
-
"onUpdate:show": t[6] || (t[6] = (l) =>
|
|
355
|
+
$(Se, {
|
|
356
|
+
show: S.value,
|
|
357
|
+
"onUpdate:show": t[6] || (t[6] = (l) => S.value = l),
|
|
358
358
|
title: me.value,
|
|
359
359
|
description: fe.value,
|
|
360
360
|
"confirm-text": ve.value,
|
|
361
361
|
"cancel-text": he.value,
|
|
362
362
|
variant: "danger",
|
|
363
363
|
onConfirm: ne,
|
|
364
|
-
onCancel: t[7] || (t[7] = (l) =>
|
|
364
|
+
onCancel: t[7] || (t[7] = (l) => S.value = !1)
|
|
365
365
|
}, null, 8, ["show", "title", "description", "confirm-text", "cancel-text"])
|
|
366
366
|
]));
|
|
367
367
|
}
|
|
@@ -5,7 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
placeholderI18n?: string;
|
|
6
6
|
modelValue?: any;
|
|
7
7
|
value?: any;
|
|
8
|
-
mode
|
|
8
|
+
mode?: DatePickerMode;
|
|
9
9
|
minDate?: string;
|
|
10
10
|
maxDate?: string;
|
|
11
11
|
disabledDates?: {
|
|
@@ -41,10 +41,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
41
41
|
onChange?: (...args: any[]) => any;
|
|
42
42
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
43
43
|
}>, {
|
|
44
|
+
mode: DatePickerMode;
|
|
44
45
|
teleport: boolean;
|
|
45
46
|
minuteInterval: number;
|
|
46
47
|
timeFormat: "12h" | "24h";
|
|
47
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
48
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
50
|
export default _default;
|
|
50
51
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -35,6 +35,7 @@ type __VLS_Props = {
|
|
|
35
35
|
triggerProps?: ButtonProps;
|
|
36
36
|
direction?: 'ltr' | 'rtl';
|
|
37
37
|
isNested?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
38
39
|
};
|
|
39
40
|
declare function __VLS_template(): {
|
|
40
41
|
attrs: Partial<{}>;
|
|
@@ -82,6 +83,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
82
83
|
onOnOpen?: () => any;
|
|
83
84
|
"onUpdate:isOpen"?: (value: boolean) => any;
|
|
84
85
|
}>, {
|
|
86
|
+
disabled: boolean;
|
|
85
87
|
loading: boolean;
|
|
86
88
|
selectable: boolean;
|
|
87
89
|
options: (IDropdownOption | string | number)[];
|