vlite3 0.4.4 → 0.4.7
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/Accordion/AccordionItem.vue.js +33 -32
- package/components/Accordion/types.d.ts +2 -0
- package/components/Alert.vue.d.ts +2 -0
- package/components/Alert.vue.js +38 -36
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.js +25 -24
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +37 -35
- package/components/CheckBox.vue.d.ts +1 -0
- package/components/CheckBox.vue.js +40 -40
- package/components/Chip/Chip.vue.js +55 -55
- package/components/Chip/types.d.ts +1 -0
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +5 -0
- package/components/ChoiceBox/ChoiceBox.vue.js +61 -58
- package/components/ColorPicker/ColorPicker.vue.js +3 -2
- package/components/ConfirmationModal.vue.d.ts +4 -2
- package/components/ConfirmationModal.vue.js +48 -33
- package/components/DataList/DataList.vue.d.ts +0 -2
- package/components/DataList/DataList.vue.js +39 -35
- package/components/DataList/types.d.ts +2 -0
- package/components/DataTable/DataTable.vue.d.ts +0 -5
- package/components/DataTable/DataTable.vue.js +177 -158
- package/components/DataTable/DataTableHeader.vue.js +15 -14
- package/components/DataTable/DataTableToolbar.vue.d.ts +1 -1
- package/components/DataTable/DataTableToolbar.vue.js +30 -23
- package/components/DataTable/types.d.ts +4 -0
- package/components/DatePicker.vue.d.ts +1 -0
- package/components/DatePicker.vue.js +32 -25
- package/components/Dropdown/DropdownBooleanItem.vue.js +18 -17
- package/components/Dropdown/DropdownGroupedLayout.vue.js +28 -27
- package/components/Dropdown/DropdownItem.vue.js +24 -23
- package/components/Dropdown/DropdownMenu.vue.js +100 -91
- package/components/Dropdown/composables/useDropdownNavigation.js +24 -23
- package/components/Dropdown/composables/useDropdownSelection.js +19 -17
- package/components/Empty/Empty.vue.d.ts +2 -2
- package/components/Empty/Empty.vue.js +32 -18
- package/components/FilePicker/FilePicker.vue.d.ts +3 -1
- package/components/FilePicker/FilePicker.vue.js +140 -127
- package/components/FileTree/FileTree.vue.js +68 -58
- package/components/FileTree/FileTreeNode.vue.js +35 -34
- package/components/FileTree/types.d.ts +3 -0
- package/components/Form/CustomFields.vue.d.ts +3 -1
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +92 -80
- package/components/Form/Form.vue.d.ts +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormField.vue.js +60 -59
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +58 -57
- package/components/Form/composables/useForm.js +91 -88
- package/components/Form/types.d.ts +4 -0
- package/components/Form/utils/form.utils.js +104 -98
- package/components/GoogleLogin.vue.d.ts +1 -1
- package/components/GoogleLogin.vue.js +39 -32
- package/components/Heatmap/Heatmap.vue2.js +3 -2
- package/components/IconPicker.vue.d.ts +2 -0
- package/components/IconPicker.vue.js +37 -29
- package/components/Input.vue.d.ts +1 -1
- package/components/Input.vue.js +96 -98
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +55 -54
- package/components/Kanban/types.d.ts +1 -0
- package/components/Masonry/Masonry.vue2.js +3 -2
- package/components/Modal.vue.d.ts +2 -0
- package/components/Modal.vue.js +62 -57
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/MultiSelect/MultiSelect.vue.js +61 -54
- package/components/Navbar/Navbar.vue.js +46 -46
- package/components/Pagination/Pagination.vue.js +116 -97
- package/components/PricingPlan/PricingPlanItem.vue.js +60 -47
- package/components/PricingPlan/types.d.ts +5 -0
- package/components/Screen/Screen.vue.d.ts +0 -4
- package/components/Screen/Screen.vue.js +231 -189
- package/components/Screen/ScreenFilter.vue.js +73 -63
- package/components/Screen/types.d.ts +5 -0
- package/components/SidePanel.vue.d.ts +2 -0
- package/components/SidePanel.vue.js +140 -5
- package/components/SidePanel.vue2.js +2 -135
- package/components/SidebarMenu/SidebarMenuItem.vue.js +131 -130
- package/components/SidebarMenu/types.d.ts +1 -0
- package/components/Slider.vue.d.ts +1 -0
- package/components/Slider.vue.js +71 -69
- package/components/Switch.vue.d.ts +1 -0
- package/components/Switch.vue.js +23 -18
- package/components/Tabes/Tabes.vue.js +20 -19
- package/components/Tabes/types.d.ts +1 -0
- package/components/Textarea.vue.d.ts +1 -0
- package/components/Textarea.vue.js +18 -16
- package/components/ThemeToggle.vue.js +24 -14
- package/components/Timeline.vue.js +68 -82
- package/components/ToastNotification.vue.js +2 -2
- package/components/Tooltip.vue.d.ts +4 -3
- package/components/Tooltip.vue.js +17 -15
- package/components/Workbook/Sheet.vue.js +80 -71
- package/components/Workbook/WorkbookAddButton.vue.js +14 -10
- package/components/Workbook/types.d.ts +1 -0
- package/core/config.d.ts +2 -0
- package/index.d.ts +1 -0
- package/index.js +28 -26
- package/package.json +1 -1
- package/style.css +1 -2
- package/types/button.d.ts +1 -0
- package/types/config.type.d.ts +10 -0
- package/types/form.type.d.ts +2 -0
- package/types/styles.d.ts +3 -0
- package/types/timeline.type.d.ts +2 -0
- package/utils/i18n.d.ts +8 -0
- package/utils/i18n.js +5 -0
- package/utils/index.d.ts +1 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as F, computed as o, openBlock as i, createElementBlock as a, normalizeClass as m, createVNode as v, withCtx as h, createTextVNode as b, toDisplayString as l, createCommentVNode as u, createElementVNode as s, Fragment as D, renderList as E, createBlock as y } from "vue";
|
|
2
|
+
import _ from "../Icon.vue.js";
|
|
3
|
+
import S from "../Button.vue.js";
|
|
4
|
+
import j from "../Badge.vue.js";
|
|
5
|
+
import { $t as n } from "../../utils/i18n.js";
|
|
6
|
+
const L = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "absolute -top-3 left-1/2 -translate-x-1/2 z-20"
|
|
8
|
-
},
|
|
9
|
+
}, M = { class: "mb-3 text-center" }, R = { class: "text-xl font-bold text-foreground tracking-tight" }, q = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "text-sm text-muted-foreground mt-2 min-h-[40px] leading-relaxed"
|
|
11
|
-
},
|
|
12
|
+
}, A = { class: "mb-8 text-center flex items-center justify-center" }, G = { class: "text-4xl font-extrabold text-foreground tracking-tight" }, H = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "text-muted-foreground text-sm font-medium ml-1 self-end mb-1.5 opacity-80"
|
|
14
|
-
},
|
|
15
|
+
}, J = { class: "flex-1 space-y-2.5 mb-8" }, K = { class: "mt-0 shrink-0 transition-transform group-hover/feature:scale-110" }, O = { class: "mt-auto pt-4 border-t border-border/70" }, Z = /* @__PURE__ */ F({
|
|
15
16
|
__name: "PricingPlanItem",
|
|
16
17
|
props: {
|
|
17
18
|
item: {},
|
|
@@ -20,68 +21,80 @@ const T = {
|
|
|
20
21
|
selectable: { type: Boolean, default: !0 }
|
|
21
22
|
},
|
|
22
23
|
emits: ["select"],
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
},
|
|
24
|
+
setup(c, { emit: P }) {
|
|
25
|
+
const e = c, k = P, I = () => {
|
|
26
|
+
e.selectable && k("select", e.item);
|
|
27
|
+
}, T = o(() => e.item.titleI18n ? n(e.item.titleI18n) : e.item.title), p = o(() => e.item.descriptionI18n ? n(e.item.descriptionI18n) : e.item.description), f = o(() => e.item.periodI18n ? n(e.item.periodI18n) : e.item.period), w = o(() => {
|
|
28
|
+
if (e.item.buttonTextI18n) return n(e.item.buttonTextI18n);
|
|
29
|
+
if (e.item.buttonText) return e.item.buttonText;
|
|
30
|
+
const t = n("vlite.pricingPlan.selected") !== "vlite.pricingPlan.selected" ? n("vlite.pricingPlan.selected") : "Selected", r = n("vlite.pricingPlan.choosePlan") !== "vlite.pricingPlan.choosePlan" ? n("vlite.pricingPlan.choosePlan") : "Choose Plan";
|
|
31
|
+
return e.selected ? t : r;
|
|
32
|
+
}), x = o(() => e.item.popular || e.item.recommended), C = o(() => {
|
|
27
33
|
const t = "relative flex flex-col p-8 rounded-2xl transition-all duration-300 cursor-pointer group isolation-auto";
|
|
28
|
-
let
|
|
29
|
-
return
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
let r = "bg-background text-card-foreground";
|
|
35
|
+
return e.selected ? r += " border-2 border-primary shadow scale-[1.02] z-10" : r += " border hover:border-gray-400 hover:shadow-lg hover:-translate-y-1", `${t} ${r}`;
|
|
36
|
+
}), B = o(() => e.selected ? "default" : "secondary"), V = o(() => e.selected || x.value ? "primary" : "outline"), $ = (t) => typeof t == "string" ? t : t.textI18n ? n(t.textI18n) : t.text, g = (t) => typeof t == "string" ? !0 : t.included !== !1, z = o(() => {
|
|
37
|
+
if (e.item.recommended) {
|
|
38
|
+
const r = n("vlite.pricingPlan.recommended");
|
|
39
|
+
return r !== "vlite.pricingPlan.recommended" ? r : "Recommended";
|
|
40
|
+
}
|
|
41
|
+
const t = n("vlite.pricingPlan.mostPopular");
|
|
42
|
+
return t !== "vlite.pricingPlan.mostPopular" ? t : "Most Popular";
|
|
43
|
+
});
|
|
44
|
+
return (t, r) => (i(), a("div", {
|
|
45
|
+
class: m(C.value),
|
|
46
|
+
onClick: I
|
|
34
47
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
variant:
|
|
48
|
+
x.value ? (i(), a("div", L, [
|
|
49
|
+
v(j, {
|
|
50
|
+
variant: B.value,
|
|
38
51
|
class: "shadow-sm px-4 py-1 text-xs uppercase tracking-wider font-bold"
|
|
39
52
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
53
|
+
default: h(() => [
|
|
54
|
+
b(l(z.value), 1)
|
|
42
55
|
]),
|
|
43
56
|
_: 1
|
|
44
57
|
}, 8, ["variant"])
|
|
45
|
-
])) :
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
])) : u("", !0),
|
|
59
|
+
s("div", M, [
|
|
60
|
+
s("h3", R, l(T.value), 1),
|
|
61
|
+
p.value ? (i(), a("p", q, l(p.value), 1)) : u("", !0)
|
|
49
62
|
]),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
s("div", A, [
|
|
64
|
+
s("span", G, l(c.item.price), 1),
|
|
65
|
+
f.value ? (i(), a("span", H, l(f.value), 1)) : u("", !0)
|
|
53
66
|
]),
|
|
54
|
-
|
|
55
|
-
(
|
|
56
|
-
key:
|
|
67
|
+
s("ul", J, [
|
|
68
|
+
(i(!0), a(D, null, E(c.item.features, (d, N) => (i(), a("li", {
|
|
69
|
+
key: N,
|
|
57
70
|
class: "flex items-start gap-3 text-sm group/feature"
|
|
58
71
|
}, [
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
s("div", K, [
|
|
73
|
+
g(d) ? (i(), y(_, {
|
|
61
74
|
key: 0,
|
|
62
75
|
icon: "lucide:check",
|
|
63
76
|
class: "w-4 h-4 text-primary font-bold"
|
|
64
|
-
})) : (
|
|
77
|
+
})) : (i(), y(_, {
|
|
65
78
|
key: 1,
|
|
66
79
|
icon: "lucide:minus",
|
|
67
80
|
class: "w-4 h-4 text-muted-foreground/30"
|
|
68
81
|
}))
|
|
69
82
|
]),
|
|
70
|
-
|
|
71
|
-
class:
|
|
72
|
-
|
|
83
|
+
s("span", {
|
|
84
|
+
class: m(
|
|
85
|
+
g(d) ? "text-foreground/90 font-medium" : "text-muted-foreground/60 decoration-slate-300/50"
|
|
73
86
|
)
|
|
74
|
-
},
|
|
87
|
+
}, l($(d)), 3)
|
|
75
88
|
]))), 128))
|
|
76
89
|
]),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
variant:
|
|
80
|
-
class:
|
|
90
|
+
s("div", O, [
|
|
91
|
+
v(S, {
|
|
92
|
+
variant: V.value,
|
|
93
|
+
class: m(["w-full font-semibold shadow-sm rounded-lg", { "ring-2 ring-primary ring-offset-2": c.selected }]),
|
|
81
94
|
size: "lg"
|
|
82
95
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
96
|
+
default: h(() => [
|
|
97
|
+
b(l(w.value), 1)
|
|
85
98
|
]),
|
|
86
99
|
_: 1
|
|
87
100
|
}, 8, ["variant", "class"])
|
|
@@ -90,5 +103,5 @@ const T = {
|
|
|
90
103
|
}
|
|
91
104
|
});
|
|
92
105
|
export {
|
|
93
|
-
|
|
106
|
+
Z as default
|
|
94
107
|
};
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
export interface PricingPlanFeature {
|
|
2
2
|
text: string;
|
|
3
|
+
textI18n?: string;
|
|
3
4
|
included: boolean;
|
|
4
5
|
}
|
|
5
6
|
export interface PricingPlanItemSchema {
|
|
6
7
|
id: string | number;
|
|
7
8
|
title: string;
|
|
9
|
+
titleI18n?: string;
|
|
8
10
|
price: string | number;
|
|
9
11
|
period?: string;
|
|
12
|
+
periodI18n?: string;
|
|
10
13
|
description?: string;
|
|
14
|
+
descriptionI18n?: string;
|
|
11
15
|
features?: (string | PricingPlanFeature)[];
|
|
12
16
|
popular?: boolean;
|
|
13
17
|
recommended?: boolean;
|
|
14
18
|
buttonText?: string;
|
|
19
|
+
buttonTextI18n?: string;
|
|
15
20
|
variant?: 'outline' | 'solid';
|
|
16
21
|
[key: string]: any;
|
|
17
22
|
}
|
|
@@ -21,14 +21,10 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
|
|
|
21
21
|
onDelete?: (items: any[]) => any;
|
|
22
22
|
onAdd?: () => any;
|
|
23
23
|
}>, {
|
|
24
|
-
title: string;
|
|
25
|
-
description: string;
|
|
26
24
|
name: string;
|
|
27
25
|
data: any[];
|
|
28
26
|
loading: boolean;
|
|
29
27
|
pagination: boolean;
|
|
30
|
-
emptyTitle: string;
|
|
31
|
-
emptyDescription: string;
|
|
32
28
|
emptyIcon: string;
|
|
33
29
|
paginationProps: import('./types').ScreenPaginationProps;
|
|
34
30
|
customHeader: boolean;
|