vlite3 1.5.27 → 1.5.28
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/Accordion.vue.d.ts +8 -1
- package/components/Accordion/AccordionContent.vue.d.ts +8 -2
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionContent2.vue.js +28 -40
- package/components/Accordion/AccordionItem.vue.d.ts +8 -1
- package/components/Accordion/AccordionItem.vue.js +86 -70
- package/components/Accordion/AccordionTrigger.vue.js +13 -12
- package/components/Badge.vue.d.ts +1 -1
- package/components/Beacon.vue.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +1 -1
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +2 -2
- package/components/Button2.vue.js +1 -1
- package/components/Carousel/Carousel.vue.d.ts +4 -4
- package/components/CategoryManager/CategoryManager2.vue.js +3 -3
- package/components/Chart/CircleChart.vue.d.ts +1 -1
- package/components/Chart/GaugeChart.vue.d.ts +1 -1
- package/components/Chart/SpeedometerChart.vue.d.ts +1 -1
- package/components/Chip/Chip.vue.d.ts +1 -1
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
- package/components/Clipboard.vue.d.ts +1 -1
- package/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
- package/components/DataList/DataList.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.js +2 -2
- package/components/DataTable/DataTable2.vue.js +48 -50
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/EditableTitle/EditableTitle.vue.d.ts +11 -11
- package/components/Empty/Empty.vue.d.ts +11 -2
- package/components/Empty/Empty.vue.js +57 -49
- package/components/Empty/index.d.ts +1 -1
- package/components/Empty/types.d.ts +13 -0
- package/components/Empty/types.js +8 -0
- package/components/Empty/variants/Variant1.vue.d.ts +4 -6
- package/components/Empty/variants/Variant1.vue.js +56 -20
- package/components/Empty/variants/Variant10.vue.d.ts +4 -6
- package/components/Empty/variants/Variant10.vue.js +68 -26
- package/components/Empty/variants/Variant11.vue.d.ts +4 -6
- package/components/Empty/variants/Variant11.vue.js +66 -18
- package/components/Empty/variants/Variant12.vue.d.ts +4 -6
- package/components/Empty/variants/Variant12.vue.js +67 -25
- package/components/Empty/variants/Variant2.vue.d.ts +4 -6
- package/components/Empty/variants/Variant2.vue.js +56 -20
- package/components/Empty/variants/Variant3.vue.d.ts +4 -6
- package/components/Empty/variants/Variant3.vue.js +41 -13
- package/components/Empty/variants/Variant4.vue.d.ts +4 -6
- package/components/Empty/variants/Variant4.vue.js +65 -21
- package/components/Empty/variants/Variant5.vue.d.ts +4 -6
- package/components/Empty/variants/Variant5.vue.js +55 -17
- package/components/Empty/variants/Variant6.vue.d.ts +4 -6
- package/components/Empty/variants/Variant6.vue.js +67 -23
- package/components/Empty/variants/Variant7.vue.d.ts +4 -6
- package/components/Empty/variants/Variant7.vue.js +81 -25
- package/components/Empty/variants/Variant8.vue.d.ts +4 -6
- package/components/Empty/variants/Variant8.vue.js +59 -23
- package/components/Empty/variants/Variant9.vue.d.ts +4 -6
- package/components/Empty/variants/Variant9.vue.js +64 -20
- package/components/FilePicker/index.vue.d.ts +1 -1
- package/components/FileTree/FileTree.vue.d.ts +2 -0
- package/components/FileTree/FileTree.vue.js +4 -4
- package/components/FileTree/FileTree2.vue.js +72 -66
- package/components/FileTree/FileTreeNode.vue.d.ts +9 -0
- package/components/FileTree/FileTreeNode.vue.js +100 -92
- package/components/FileTree/types.d.ts +12 -0
- package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
- package/components/Form/Form.vue.d.ts +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormFields.vue.d.ts +1 -1
- package/components/Form/TableView.vue.d.ts +1 -1
- package/components/Form/index.vue.d.ts +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/GoogleLogin.vue.d.ts +1 -1
- package/components/Input.vue.d.ts +1 -1
- package/components/Input.vue.js +2 -4
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
- package/components/NumberInput.vue.d.ts +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
- package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/components/Screen/components/ScreenEmptyState.vue.js +12 -12
- package/components/Slider.vue.d.ts +1 -1
- package/components/Spinner/Spinner.vue.d.ts +1 -1
- package/components/Switch.vue.d.ts +1 -1
- package/components/Tabes/Tabes.vue.d.ts +1 -1
- package/components/TagInput/TagInput.vue.d.ts +6 -6
- package/components/Tooltip.vue.d.ts +1 -1
- package/core/config.d.ts +2 -2
- package/docs/components/accordion.md +35 -0
- package/docs/components/empty.md +38 -4
- package/docs/components/file-tree.md +67 -16
- package/docs-manifest.json +5 -5
- package/package.json +1 -1
- package/style.css +1 -1
- /package/components/Dropdown/{DropdownMenu3.vue.js → DropdownMenu2.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar2.vue.js → RichTextToolbar.vue.js} +0 -0
|
@@ -25,8 +25,8 @@ interface Props {
|
|
|
25
25
|
onDragUpdate: (rows: CustomFieldRow[]) => void;
|
|
26
26
|
}
|
|
27
27
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
28
|
-
variant: InputVariant;
|
|
29
28
|
size: InputSize;
|
|
29
|
+
variant: InputVariant;
|
|
30
30
|
rounded: InputRounded;
|
|
31
31
|
rowTitleKey: string;
|
|
32
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -34,8 +34,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
34
34
|
onChange?: (value: Record<string, any>[]) => any;
|
|
35
35
|
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
36
36
|
}>, {
|
|
37
|
-
variant: InputVariant;
|
|
38
37
|
size: InputSize;
|
|
38
|
+
variant: InputVariant;
|
|
39
39
|
rounded: InputRounded;
|
|
40
40
|
readonly: boolean;
|
|
41
41
|
draggable: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as d, openBlock as n, createElementBlock as R, createElementVNode as x, createBlock as s, withCtx as k, createTextVNode as B, toDisplayString as I, createCommentVNode as y, unref as l } from "vue";
|
|
2
2
|
import T from "./TableView.vue.js";
|
|
3
|
-
import C from "./
|
|
3
|
+
import C from "./AccordionView2.vue.js";
|
|
4
4
|
import U from "../Label.vue.js";
|
|
5
5
|
import z from "../Button.vue.js";
|
|
6
6
|
import { useCustomFieldRows as N } from "./composables/useCustomFieldRows.js";
|
|
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<GoogleLoginProps, {
|
|
|
27
27
|
onSuccess?: (response: any) => any;
|
|
28
28
|
onError?: (error: any) => any;
|
|
29
29
|
}>, {
|
|
30
|
-
variant: any;
|
|
31
30
|
size: any;
|
|
31
|
+
variant: any;
|
|
32
32
|
rounded: any;
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
|
|
|
26
26
|
}>, {
|
|
27
27
|
type: import('../types').InputType;
|
|
28
28
|
class: string;
|
|
29
|
-
variant: InputVariant;
|
|
30
29
|
size: InputSize;
|
|
30
|
+
variant: InputVariant;
|
|
31
31
|
rounded: InputRounded;
|
|
32
32
|
loading: boolean;
|
|
33
33
|
readonly: boolean;
|
package/components/Input.vue.js
CHANGED
|
@@ -40,9 +40,7 @@ const ie = ["dir"], ce = ["for"], fe = ["type", "value", "placeholder", "disable
|
|
|
40
40
|
},
|
|
41
41
|
emits: ["update:modelValue", "focus", "blur", "change", "click:icon", "click:icon-right"],
|
|
42
42
|
setup(t, { expose: W, emit: q }) {
|
|
43
|
-
const e = t, f = q, d = a(() => U(e.labelI18n, e.label)), I = a(
|
|
44
|
-
() => U(e.placeholderI18n, e.placeholder)
|
|
45
|
-
), y = oe(), s = v(null), b = v(null), p = v(!1), G = se(), $ = a(() => G.value ? "rtl" : "ltr"), h = v(!1), J = a(() => e.type === "password" && p.value ? "text" : e.type), V = a(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), z = a(() => g.value || V.value || h.value), w = a(() => !!e.addonLeft || !!y["addon-left"]), R = a(() => !!e.addonRight || !!y["addon-right"]), K = a(() => [
|
|
43
|
+
const e = t, f = q, d = a(() => U(e.labelI18n, e.label)), I = a(() => U(e.placeholderI18n, e.placeholder)), y = oe(), s = v(null), b = v(null), p = v(!1), G = se(), $ = a(() => G.value ? "rtl" : "ltr"), h = v(!1), J = a(() => e.type === "password" && p.value ? "text" : e.type), V = a(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), z = a(() => g.value || V.value || h.value), w = a(() => !!e.addonLeft || !!y["addon-left"]), R = a(() => !!e.addonRight || !!y["addon-right"]), K = a(() => [
|
|
46
44
|
"relative w-full",
|
|
47
45
|
e.class,
|
|
48
46
|
e.labelPosition === "left" ? "flex items-center gap-4" : "",
|
|
@@ -75,7 +73,7 @@ const ie = ["dir"], ce = ["for"], fe = ["type", "value", "placeholder", "disable
|
|
|
75
73
|
const D = e.variant === "outline-b" || e.variant === "transparent", ne = {
|
|
76
74
|
xs: "ps-6",
|
|
77
75
|
sm: "ps-8",
|
|
78
|
-
md: "ps-
|
|
76
|
+
md: "ps-8.5",
|
|
79
77
|
lg: "ps-9",
|
|
80
78
|
xl: "ps-9"
|
|
81
79
|
};
|
|
@@ -49,8 +49,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
49
49
|
"onUpdate:modelValue"?: (value: any[]) => any;
|
|
50
50
|
"onLoad-more"?: () => any;
|
|
51
51
|
}>, {
|
|
52
|
-
variant: "default" | "outline" | "solid" | "floating" | string;
|
|
53
52
|
size: "sm" | "md" | "lg";
|
|
53
|
+
variant: "default" | "outline" | "solid" | "floating" | string;
|
|
54
54
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | string;
|
|
55
55
|
loading: boolean;
|
|
56
56
|
readonly: boolean;
|
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
}
|
|
12
12
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
13
|
class: string;
|
|
14
|
-
variant: NavbarTabsVariant;
|
|
15
14
|
size: NavbarTabsSize;
|
|
15
|
+
variant: NavbarTabsVariant;
|
|
16
16
|
activeClass: string;
|
|
17
17
|
inactiveClass: string;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -25,8 +25,8 @@ declare const _default: import('vue').DefineComponent<NumberInputProps, {}, {},
|
|
|
25
25
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
26
26
|
}>, {
|
|
27
27
|
mode: "solid" | "outline" | "ghost";
|
|
28
|
-
variant: "split" | "stacked";
|
|
29
28
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
29
|
+
variant: "split" | "stacked";
|
|
30
30
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
31
31
|
readonly: boolean;
|
|
32
32
|
disabled: boolean;
|
|
@@ -35,8 +35,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
35
35
|
length: number;
|
|
36
36
|
type: "text" | "number";
|
|
37
37
|
mask: boolean;
|
|
38
|
-
variant: "solid" | "outline" | "ghost";
|
|
39
38
|
size: "sm" | "md" | "lg";
|
|
39
|
+
variant: "solid" | "outline" | "ghost";
|
|
40
40
|
error: boolean;
|
|
41
41
|
placeholder: string;
|
|
42
42
|
disabled: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProgressBarProps, ProgressBarVariant, ProgressBarSize } from '../../types/progressbar';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
3
3
|
type: import('../../types/progressbar').ProgressBarType;
|
|
4
|
-
variant: ProgressBarVariant;
|
|
5
4
|
size: ProgressBarSize;
|
|
5
|
+
variant: ProgressBarVariant;
|
|
6
6
|
rounded: string;
|
|
7
7
|
striped: boolean;
|
|
8
8
|
indeterminate: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import se from "./
|
|
4
|
-
/* empty css
|
|
5
|
-
import de from "./
|
|
6
|
-
/* empty css
|
|
3
|
+
import se from "./RichTextToolbar.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import de from "./RichTextLinkPopover.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
|
|
8
8
|
import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
|
|
9
9
|
const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
|
|
@@ -23,11 +23,11 @@ import "iconify-icon-picker/style.css";
|
|
|
23
23
|
import "../../icons/IconRegistry.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
|
-
/* empty css
|
|
26
|
+
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
29
|
-
/* empty css
|
|
30
|
-
/* empty css
|
|
29
|
+
/* empty css */
|
|
30
|
+
/* empty css */
|
|
31
31
|
import "../../core/config.js";
|
|
32
32
|
/* empty css */
|
|
33
33
|
/* empty css */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as g, computed as m, markRaw as k, resolveComponent as C, openBlock as n, createBlock as a, unref as h, withCtx as d, createElementBlock as o, Fragment as u, resolveDynamicComponent as x, mergeProps as i, createVNode as y, createTextVNode as B, toDisplayString as f, createCommentVNode as l } from "vue";
|
|
2
|
+
import w from "../../Empty/Empty.vue.js";
|
|
3
3
|
import s from "../../Button.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import N from "../../Modal.vue.js";
|
|
5
5
|
import { $t as I } from "../../../utils/i18n.js";
|
|
6
|
-
const
|
|
6
|
+
const A = ["href", "target"], E = /* @__PURE__ */ g({
|
|
7
7
|
__name: "ScreenEmptyState",
|
|
8
8
|
props: {
|
|
9
9
|
emptyTitle: {},
|
|
@@ -27,10 +27,10 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
|
|
|
27
27
|
const r = I("vlite.screen.addNew");
|
|
28
28
|
return r !== "vlite.screen.addNew" ? r : "Add New";
|
|
29
29
|
});
|
|
30
|
-
return (r,
|
|
31
|
-
const
|
|
32
|
-
return n(), a(h(
|
|
33
|
-
|
|
30
|
+
return (r, D) => {
|
|
31
|
+
const p = C("router-link");
|
|
32
|
+
return n(), a(h(w), {
|
|
33
|
+
className: "py-2! min-h-[400px]",
|
|
34
34
|
title: e.emptyTitle,
|
|
35
35
|
titleI18n: e.emptyTitleI18n,
|
|
36
36
|
description: e.emptyDescription,
|
|
@@ -39,9 +39,9 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
|
|
|
39
39
|
}, {
|
|
40
40
|
action: d(() => [
|
|
41
41
|
e.isFiltered ? l("", !0) : (n(), o(u, { key: 0 }, [
|
|
42
|
-
v.value ? (n(), a(
|
|
42
|
+
v.value ? (n(), a(x(v.value), { key: 0 })) : e.canAdd ? (n(), o(u, { key: 1 }, [
|
|
43
43
|
e.addBtn ? (n(), o(u, { key: 0 }, [
|
|
44
|
-
e.addBtn.modal ? (n(), a(
|
|
44
|
+
e.addBtn.modal ? (n(), a(N, i({
|
|
45
45
|
key: 0,
|
|
46
46
|
body: b.value
|
|
47
47
|
}, e.addBtn.modalProps), {
|
|
@@ -59,7 +59,7 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
|
|
|
59
59
|
}, 16, ["icon"])
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
|
-
}, 16, ["body"])) : e.addBtn.to ? (n(), a(
|
|
62
|
+
}, 16, ["body"])) : e.addBtn.to ? (n(), a(p, {
|
|
63
63
|
key: 1,
|
|
64
64
|
to: e.addBtn.to,
|
|
65
65
|
class: "inline-flex"
|
|
@@ -91,7 +91,7 @@ const D = ["href", "target"], E = /* @__PURE__ */ p({
|
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
}, 16, ["icon"])
|
|
94
|
-
], 8,
|
|
94
|
+
], 8, A)) : l("", !0)
|
|
95
95
|
], 64)) : l("", !0)
|
|
96
96
|
], 64)) : l("", !0)
|
|
97
97
|
], 64))
|
|
@@ -25,8 +25,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
25
25
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
26
26
|
onIconClick?: () => any;
|
|
27
27
|
}>, {
|
|
28
|
-
variant: "one" | "two";
|
|
29
28
|
size: "xs" | "sm" | "md" | "lg";
|
|
29
|
+
variant: "one" | "two";
|
|
30
30
|
orientation: "horizontal" | "vertical";
|
|
31
31
|
modelValue: number;
|
|
32
32
|
min: number;
|
|
@@ -2,7 +2,7 @@ import { SpinnerProps, SpinnerSize, SpinnerColor, SpinnerVariant } from './types
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
3
3
|
class: string;
|
|
4
4
|
color: SpinnerColor;
|
|
5
|
-
variant: SpinnerVariant;
|
|
6
5
|
size: SpinnerSize;
|
|
6
|
+
variant: SpinnerVariant;
|
|
7
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
8
8
|
export default _default;
|
|
@@ -18,8 +18,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
18
18
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
19
19
|
}>, {
|
|
20
20
|
class: string;
|
|
21
|
-
variant: SwitchVariant;
|
|
22
21
|
size: InputSize;
|
|
22
|
+
variant: SwitchVariant;
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
modelValue: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -47,8 +47,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
47
47
|
onReorder?: (payload: TabesReorderPayload) => any;
|
|
48
48
|
"onUpdate:options"?: (options: TabesOption[]) => any;
|
|
49
49
|
}>, {
|
|
50
|
-
variant: TabesVariant;
|
|
51
50
|
size: TabesSize;
|
|
51
|
+
variant: TabesVariant;
|
|
52
52
|
block: boolean;
|
|
53
53
|
direction: "ltr" | "rtl" | "auto";
|
|
54
54
|
wrap: boolean;
|
|
@@ -18,8 +18,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
18
18
|
"onUpdate:modelValue"?: (value: string[]) => any;
|
|
19
19
|
}>, {
|
|
20
20
|
class: string;
|
|
21
|
-
variant: "outline" | "solid" | "transparent" | "outline-b" | "floating";
|
|
22
21
|
size: "sm" | "md" | "lg";
|
|
22
|
+
variant: "outline" | "solid" | "transparent" | "outline-b" | "floating";
|
|
23
23
|
rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
24
24
|
placeholder: string;
|
|
25
25
|
disabled: boolean;
|
|
@@ -31,8 +31,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
31
31
|
$props: Partial<{
|
|
32
32
|
type: import('../..').InputType;
|
|
33
33
|
class: string;
|
|
34
|
-
variant: import('../..').InputVariant;
|
|
35
34
|
size: import('../..').InputSize;
|
|
35
|
+
variant: import('../..').InputVariant;
|
|
36
36
|
rounded: import('../..').InputRounded;
|
|
37
37
|
loading: boolean;
|
|
38
38
|
readonly: boolean;
|
|
@@ -83,7 +83,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
83
83
|
readonly "onUpdate:modelValue"?: (value: string | number) => any;
|
|
84
84
|
readonly "onClick:icon"?: (event: MouseEvent) => any;
|
|
85
85
|
readonly "onClick:icon-right"?: (event: MouseEvent) => any;
|
|
86
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "
|
|
86
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass">;
|
|
87
87
|
$attrs: import('vue').Attrs;
|
|
88
88
|
$refs: any;
|
|
89
89
|
$slots: Readonly<{
|
|
@@ -116,8 +116,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
116
116
|
}, string, {
|
|
117
117
|
type: import('../..').InputType;
|
|
118
118
|
class: string;
|
|
119
|
-
variant: import('../..').InputVariant;
|
|
120
119
|
size: import('../..').InputSize;
|
|
120
|
+
variant: import('../..').InputVariant;
|
|
121
121
|
rounded: import('../..').InputRounded;
|
|
122
122
|
loading: boolean;
|
|
123
123
|
readonly: boolean;
|
|
@@ -154,8 +154,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
154
154
|
} & Readonly<{
|
|
155
155
|
type: import('../..').InputType;
|
|
156
156
|
class: string;
|
|
157
|
-
variant: import('../..').InputVariant;
|
|
158
157
|
size: import('../..').InputSize;
|
|
158
|
+
variant: import('../..').InputVariant;
|
|
159
159
|
rounded: import('../..').InputRounded;
|
|
160
160
|
loading: boolean;
|
|
161
161
|
readonly: boolean;
|
|
@@ -176,7 +176,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
176
176
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
177
177
|
"onClick:icon"?: (event: MouseEvent) => any;
|
|
178
178
|
"onClick:icon-right"?: (event: MouseEvent) => any;
|
|
179
|
-
}>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "
|
|
179
|
+
}>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass")> & {
|
|
180
180
|
focus: (options?: FocusOptions) => void;
|
|
181
181
|
select: () => void;
|
|
182
182
|
blur: () => void;
|
|
@@ -17,8 +17,8 @@ declare function __VLS_template(): {
|
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
19
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
|
-
disabled: boolean;
|
|
21
20
|
className: string;
|
|
21
|
+
disabled: boolean;
|
|
22
22
|
teleport: boolean;
|
|
23
23
|
triggerClass: string;
|
|
24
24
|
placement: import('v-tooltip-lite/types').TooltTipPlacement;
|
package/core/config.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ export declare const configState: {
|
|
|
49
49
|
customStatuses?: Record<string, import('../index.ts').CustomStatusConfig>;
|
|
50
50
|
};
|
|
51
51
|
attachmentsList?: {
|
|
52
|
-
variant?: "default" | "list" | "inline" | "card";
|
|
53
52
|
size?: "sm" | "md" | "lg";
|
|
53
|
+
variant?: "default" | "list" | "inline" | "card";
|
|
54
54
|
canView?: boolean;
|
|
55
55
|
canDownload?: boolean;
|
|
56
56
|
clickToPreview?: boolean;
|
|
@@ -250,8 +250,8 @@ export declare function useVLiteConfig(): {
|
|
|
250
250
|
customStatuses?: Record<string, import('../index.ts').CustomStatusConfig>;
|
|
251
251
|
};
|
|
252
252
|
attachmentsList?: {
|
|
253
|
-
variant?: "default" | "list" | "inline" | "card";
|
|
254
253
|
size?: "sm" | "md" | "lg";
|
|
254
|
+
variant?: "default" | "list" | "inline" | "card";
|
|
255
255
|
canView?: boolean;
|
|
256
256
|
canDownload?: boolean;
|
|
257
257
|
clickToPreview?: boolean;
|
|
@@ -50,3 +50,38 @@ export type IconVariant = 'simple' | 'solid' | 'outline' | 'primary' | 'ghost'
|
|
|
50
50
|
```vue
|
|
51
51
|
<Accordion :items="items" variant="outline" allow-multiple attached show-index />
|
|
52
52
|
```
|
|
53
|
+
|
|
54
|
+
### SSR and SEO
|
|
55
|
+
|
|
56
|
+
Accordion is SSR-compatible. Every item's trigger **and** body are included in the
|
|
57
|
+
server-rendered HTML, including items that start collapsed. Open/closed state
|
|
58
|
+
controls **visibility and animation only** — collapsed does not mean unrendered.
|
|
59
|
+
|
|
60
|
+
That keeps FAQ and informational copy indexable and available in the initial
|
|
61
|
+
document (and with JavaScript disabled). After hydration, closed items stay
|
|
62
|
+
visually collapsed, open items stay visible, and triggers continue to expand
|
|
63
|
+
and collapse with a smooth height animation.
|
|
64
|
+
|
|
65
|
+
Trigger/panel relationships are stable across SSR and hydration:
|
|
66
|
+
|
|
67
|
+
- DOM ids are generated with Vue `useId()` (HTML/ARIA-id-safe). `item.id` is
|
|
68
|
+
only the application state key for `modelValue` / `defaultValue`, never an
|
|
69
|
+
IDREF
|
|
70
|
+
- The default trigger exposes `id`, `aria-expanded`, and `aria-controls`
|
|
71
|
+
- The panel has a matching `id`, `role="region"`, and `aria-labelledby`
|
|
72
|
+
- A custom `#trigger` is wrapped with the trigger `id`, so `aria-labelledby`
|
|
73
|
+
always resolves. Bind `triggerAttrs` (`aria-expanded`, `aria-controls`) onto
|
|
74
|
+
your actual control — and use a `button` (or equivalent). Do not assign
|
|
75
|
+
`triggerId` as a second element `id`.
|
|
76
|
+
|
|
77
|
+
```vue
|
|
78
|
+
<template #trigger="{ toggle, open, triggerAttrs }">
|
|
79
|
+
<button type="button" v-bind="triggerAttrs" @click="toggle">
|
|
80
|
+
Custom trigger
|
|
81
|
+
</button>
|
|
82
|
+
</template>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Form layouts that reuse `AccordionItem` (for example `AccordionView`) can still
|
|
86
|
+
lazy-mount interactive fields inside the body. That is a form concern, not the
|
|
87
|
+
public SEO accordion path.
|
package/docs/components/empty.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Empty
|
|
2
2
|
|
|
3
|
-
**Import:** `import { Empty } from 'vlite3'`
|
|
3
|
+
**Import:** `import { Empty, type EmptySize } from 'vlite3'`
|
|
4
4
|
|
|
5
5
|
A versatile component used to display empty states when no data is available. It comes with 12 distinct, highly-polished variants designed for modern SaaS interfaces, ranging from simple icons to elaborate structural skeletons and minimalist focus blocks.
|
|
6
6
|
|
|
@@ -18,6 +18,7 @@ The component inherits its default variant from the global `vlite3` configuratio
|
|
|
18
18
|
| `descriptionI18n` | `string` | — | An i18n key to use for the description, translated automatically. |
|
|
19
19
|
| `icon` | `string` | `'lucide:inbox'` | The icon to display, using any valid Iconify string format. |
|
|
20
20
|
| `variant` | `EmptyVariant` | `'variant1'` | The visual variant to render. Accepts `'variant1'` through `'variant11'`. |
|
|
21
|
+
| `size` | `EmptySize` | `'md'` | Visual density of the empty state. Accepts `'xs'`, `'sm'`, `'md'`, and `'lg'`. `'md'` is the default and matches the current design. |
|
|
21
22
|
|
|
22
23
|
---
|
|
23
24
|
|
|
@@ -25,7 +26,7 @@ The component inherits its default variant from the global `vlite3` configuratio
|
|
|
25
26
|
|
|
26
27
|
| Slot Name | Description |
|
|
27
28
|
| :-------- | :---------- |
|
|
28
|
-
| `action` |
|
|
29
|
+
| `action` | Call-to-action below the description. Receives `{ size }` (`EmptySize`) so consumers can bind it to `Button`. Empty does not resize slot content itself. |
|
|
29
30
|
| `default` | The default slot, rendered inside the component block for custom additions. |
|
|
30
31
|
|
|
31
32
|
---
|
|
@@ -48,13 +49,46 @@ import { Empty, Button } from 'vlite3'
|
|
|
48
49
|
icon="lucide:sparkles"
|
|
49
50
|
variant="variant10"
|
|
50
51
|
>
|
|
51
|
-
<template #action>
|
|
52
|
-
<Button variant="primary">Get Started</Button>
|
|
52
|
+
<template #action="{ size }">
|
|
53
|
+
<Button :size="size" variant="primary">Get Started</Button>
|
|
53
54
|
</template>
|
|
54
55
|
</Empty>
|
|
55
56
|
</template>
|
|
56
57
|
```
|
|
57
58
|
|
|
59
|
+
### Sizes
|
|
60
|
+
|
|
61
|
+
`size` scales typography, icon dimensions, padding, and spacing. It does not change the variant layout or visual style. Omitting `size` is identical to `size="md"`.
|
|
62
|
+
|
|
63
|
+
```vue
|
|
64
|
+
<Empty />
|
|
65
|
+
<Empty size="md" />
|
|
66
|
+
<Empty size="xs" />
|
|
67
|
+
<Empty size="sm" />
|
|
68
|
+
<Empty size="lg" />
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
type EmptySize = 'xs' | 'sm' | 'md' | 'lg'
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
| Size | Empty density | Typical `Button` size |
|
|
76
|
+
| :--- | :------------ | :-------------------- |
|
|
77
|
+
| `xs` | Extra-compact | `xs` |
|
|
78
|
+
| `sm` | Compact | `sm` |
|
|
79
|
+
| `md` | Default. Current design and dimensions. | `md` (Button default) |
|
|
80
|
+
| `lg` | Larger presentation | `lg` |
|
|
81
|
+
|
|
82
|
+
Empty does not restyle arbitrary `action` slot content. The slot receives the resolved size so consumers can bind it to `Button` (or ignore it):
|
|
83
|
+
|
|
84
|
+
```vue
|
|
85
|
+
<Empty size="sm">
|
|
86
|
+
<template #action="{ size }">
|
|
87
|
+
<Button :size="size">Get Started</Button>
|
|
88
|
+
</template>
|
|
89
|
+
</Empty>
|
|
90
|
+
```
|
|
91
|
+
|
|
58
92
|
---
|
|
59
93
|
|
|
60
94
|
## Global Configuration
|
|
@@ -8,20 +8,22 @@ A recursive tree component for displaying hierarchical data (files, folders, cat
|
|
|
8
8
|
|
|
9
9
|
### Props
|
|
10
10
|
|
|
11
|
-
| Prop | Type | Default
|
|
12
|
-
| :-------------------- | :------------------------------ |
|
|
13
|
-
| `data` | `FileNode[]` | `[]`
|
|
14
|
-
| `modelValue` | `string[]` | `[]`
|
|
15
|
-
| `selectionMode` | `'single' \| 'multiple'` | `'single'`
|
|
16
|
-
| `showCheckboxes` | `boolean` | `false`
|
|
17
|
-
| `loadData` | `(node) => Promise<FileNode[]>` | —
|
|
18
|
-
| `searchQuery` | `string` | —
|
|
19
|
-
| `highlightSearch` | `boolean` | `false`
|
|
20
|
-
| `defaultExpandedKeys` | `string[]` | `[]`
|
|
21
|
-
| `emptyText` | `string` | —
|
|
22
|
-
| `emptyTextI18n` | `string` | —
|
|
23
|
-
| `variant` | `'default' \| 'bordered'` | `'default'
|
|
24
|
-
| `class` | `string` | —
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
| :-------------------- | :------------------------------ | :------------------ | :----------------------------------------------- |
|
|
13
|
+
| `data` | `FileNode[]` | `[]` | Tree data structure |
|
|
14
|
+
| `modelValue` | `string[]` | `[]` | Selected node IDs (v-model) |
|
|
15
|
+
| `selectionMode` | `'single' \| 'multiple'` | `'single'` | Selection behavior |
|
|
16
|
+
| `showCheckboxes` | `boolean` | `false` | Show checkboxes for selection |
|
|
17
|
+
| `loadData` | `(node) => Promise<FileNode[]>` | — | Async handler for loading children |
|
|
18
|
+
| `searchQuery` | `string` | — | Filter nodes by name or content |
|
|
19
|
+
| `highlightSearch` | `boolean` | `false` | Highlight matching text |
|
|
20
|
+
| `defaultExpandedKeys` | `string[]` | `[]` | Initially expanded nodes |
|
|
21
|
+
| `emptyText` | `string` | — | Text for empty state |
|
|
22
|
+
| `emptyTextI18n` | `string` | — | I18n key for empty text |
|
|
23
|
+
| `variant` | `'default' \| 'bordered'` | `'default'` | Visual style of the tree |
|
|
24
|
+
| `class` | `string` | — | CSS class for tree container |
|
|
25
|
+
| `showTreeLines` | `boolean` | `true` | Show/hide tree connector (indent) lines |
|
|
26
|
+
| `selectOnRowClick` | `boolean` | `true` | When `false`, parent/folder row clicks only expand/collapse (never select). Leaf/file rows stay selectable via the row. Checkboxes still select folders and files. |
|
|
25
27
|
|
|
26
28
|
### Type Definitions
|
|
27
29
|
|
|
@@ -50,7 +52,40 @@ interface FileNode {
|
|
|
50
52
|
|
|
51
53
|
### Hierarchy connectors
|
|
52
54
|
|
|
53
|
-
The indent guides are drawn by the shared `TreeConnectors` component (`src/components/TreeConnectors`), the same primitive used by `DataTable`'s tree mode. Every node renders a vertical trunk, a horizontal branch to its icon, and a corner when it is the last child — all computed dynamically from the node's depth, its position among its siblings (`isLast`), and its ancestors' last-child flags (`ancestorLastFlags`, threaded through the recursion). Nothing is hard-coded, so the guides stay correct at any nesting depth and update automatically as folders expand, collapse, or load asynchronously.
|
|
55
|
+
The indent guides are drawn by the shared `TreeConnectors` component (`src/components/TreeConnectors`), the same primitive used by `DataTable`'s tree mode. Every node renders a vertical trunk, a horizontal branch to its icon, and a corner when it is the last child — all computed dynamically from the node's depth, its position among its siblings (`isLast`), and its ancestors' last-child flags (`ancestorLastFlags`, threaded through the recursion). Nothing is hard-coded, so the guides stay correct at any nesting depth and update automatically as folders expand, collapse, or load asynchronously. Set `:show-tree-lines="false"` to hide these lines for all nodes while preserving indentation, icons, checkboxes, and hierarchy alignment.
|
|
56
|
+
|
|
57
|
+
### Configurable Tree Lines
|
|
58
|
+
|
|
59
|
+
When `showTreeLines` is `false` (the default is `true`), the `TreeConnectors` overlay is not rendered for any node. Nested indentation, folder/file icons, checkboxes, and labels remain correctly aligned at every depth. This is useful for a cleaner look or when connecting application-level hierarchy to a custom connector system.
|
|
60
|
+
|
|
61
|
+
```vue
|
|
62
|
+
<FileTree :data="files" :show-tree-lines="false" />
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Configurable Row Selection
|
|
66
|
+
|
|
67
|
+
`selectOnRowClick` distinguishes **parent** rows from **leaf** rows. It does not turn the tree into checkbox-only selection.
|
|
68
|
+
|
|
69
|
+
When `selectOnRowClick` is `false` (the default is `true`):
|
|
70
|
+
|
|
71
|
+
- **Folder/parent row** → expand/collapse only. Selection is unchanged.
|
|
72
|
+
- **File/leaf row** → still select/unselect that individual file by clicking the row.
|
|
73
|
+
- **Folder checkbox** → select/unselect the folder with the existing recursive behavior.
|
|
74
|
+
- **File checkbox** → select/unselect that file normally.
|
|
75
|
+
|
|
76
|
+
When `true` (default), leaf row-selection is unchanged: clicking a file row still selects it, and clicking a folder row still expands/collapses.
|
|
77
|
+
|
|
78
|
+
`@node-click` continues to emit for general row interaction and must not be used to mutate selection. A folder `node-click` means the user expanded or collapsed that parent — treating it as a selection request would select or unselect all descendants. Use `@select` or `v-model` for selection changes.
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<FileTree
|
|
82
|
+
:data="projectFiles"
|
|
83
|
+
v-model="selectedIds"
|
|
84
|
+
selection-mode="multiple"
|
|
85
|
+
show-checkboxes
|
|
86
|
+
:select-on-row-click="false"
|
|
87
|
+
:default-expanded-keys="['root']" />
|
|
88
|
+
```
|
|
54
89
|
|
|
55
90
|
### Usage
|
|
56
91
|
|
|
@@ -126,7 +161,23 @@ const selectedIds = ref([])
|
|
|
126
161
|
</template>
|
|
127
162
|
```
|
|
128
163
|
|
|
129
|
-
#### 4.
|
|
164
|
+
#### 4. Parent vs leaf row selection
|
|
165
|
+
|
|
166
|
+
Disable **parent/folder** row-selection so a folder click only expands or collapses. Leaf/file rows remain selectable from the row. Checkboxes still select both folders and files.
|
|
167
|
+
|
|
168
|
+
```vue
|
|
169
|
+
<FileTree
|
|
170
|
+
:data="projectFiles"
|
|
171
|
+
v-model="selectedIds"
|
|
172
|
+
selection-mode="multiple"
|
|
173
|
+
show-checkboxes
|
|
174
|
+
:select-on-row-click="false"
|
|
175
|
+
:default-expanded-keys="['root']" />
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Bind selection with `v-model` or `@select`, not `@node-click`. The `node-click` event still fires for row interaction (including folder expand/collapse) and must not be treated as a selection request.
|
|
179
|
+
|
|
180
|
+
#### 5. Custom Node Actions
|
|
130
181
|
|
|
131
182
|
You can render custom action buttons on the right side of the node using the `#actions` slot.
|
|
132
183
|
|
package/docs-manifest.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-08-
|
|
5
|
+
"packageVersion": "1.5.28",
|
|
6
|
+
"generatedAt": "2026-08-26T03:21:48.016Z",
|
|
7
7
|
"files": {
|
|
8
8
|
"component-index.md": {
|
|
9
9
|
"sha256": "e49e0418bda4262d9181fcd9a79cce02513027b34aab865663da7e2d93e7c702"
|
|
10
10
|
},
|
|
11
11
|
"components/accordion.md": {
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "23b909b74c50eb74a6d9f64697c54bc744361fd81938113cb5039a975a9d474b"
|
|
13
13
|
},
|
|
14
14
|
"components/alert.md": {
|
|
15
15
|
"sha256": "4600f3b731be8a10131e6a606c9ed1a9e93c4598ce8207492c3543f2fe2f9ee7"
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"sha256": "6508b8093b030fd7f8d8be3a413c68dde6a902013b08926c3ce05b7a5e3b5be4"
|
|
127
127
|
},
|
|
128
128
|
"components/empty.md": {
|
|
129
|
-
"sha256": "
|
|
129
|
+
"sha256": "9227b8f084db61fcb3d934cf6a0acaa7a9aaffa5ad63a71e240fd6d5e5fc04b8"
|
|
130
130
|
},
|
|
131
131
|
"components/export-data.md": {
|
|
132
132
|
"sha256": "f0a3a1ec2144a2da61a7ad2128360a1e84b127591e4fd3bfb4c0caa670c551ed"
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"sha256": "6087e49ac775cfb892642fe54179e5f1b99cfa09c193bd0e7ad10a2cc0b3b9aa"
|
|
139
139
|
},
|
|
140
140
|
"components/file-tree.md": {
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "43d2f2846cac1d7d7a49dff08c4679fed12caf0f7085a75d7324b48f5980e468"
|
|
142
142
|
},
|
|
143
143
|
"components/footer.md": {
|
|
144
144
|
"sha256": "731d6f1980ef4d9641633daab1cab59a1180553a2235cb1e9d6ae70318ff8a2d"
|