vlite3 1.5.25 → 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 +1 -1
- 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/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +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/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/NavbarCommandPalette.vue.js +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/Screen/ScreenFilter.vue.js +1 -1
- 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/Splitter/Splitter.vue.d.ts +9 -16
- package/components/Splitter/Splitter.vue.js +72 -41
- 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
|
@@ -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, {
|
|
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
|
|
|
3
3
|
import v from "./Modal.vue.js";
|
|
4
4
|
import N from "./CommandPalette/CommandPaletteContent.vue.js";
|
|
5
5
|
import { $t as U } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ms-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ms-1" }, A = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|
|
@@ -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
|
-
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
interface Props {
|
|
2
|
+
export interface Props {
|
|
3
3
|
layout?: 'horizontal' | 'vertical';
|
|
4
4
|
modelValue?: number;
|
|
5
5
|
min?: number;
|
|
@@ -9,20 +9,10 @@ interface Props {
|
|
|
9
9
|
lineClass?: string;
|
|
10
10
|
/** Inline styles for the splitter line (resize handle). */
|
|
11
11
|
lineStyle?: CSSProperties;
|
|
12
|
+
/** If true, the end pane and splitter handle are hidden, and the start pane occupies 100%. */
|
|
13
|
+
hideEndPane?: boolean;
|
|
12
14
|
}
|
|
13
|
-
declare
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
start?(_: {}): any;
|
|
17
|
-
end?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
refs: {
|
|
20
|
-
containerRef: HTMLDivElement;
|
|
21
|
-
};
|
|
22
|
-
rootEl: HTMLDivElement;
|
|
23
|
-
};
|
|
24
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
16
|
"update:modelValue": (val: number) => any;
|
|
27
17
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
28
18
|
"onUpdate:modelValue"?: (val: number) => any;
|
|
@@ -34,10 +24,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
34
24
|
max: number;
|
|
35
25
|
lineStyle: CSSProperties;
|
|
36
26
|
lineClass: string;
|
|
27
|
+
hideEndPane: boolean;
|
|
37
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
38
29
|
containerRef: HTMLDivElement;
|
|
39
|
-
}, HTMLDivElement
|
|
40
|
-
|
|
30
|
+
}, HTMLDivElement>, {
|
|
31
|
+
start?(_: {}): any;
|
|
32
|
+
end?(_: {}): any;
|
|
33
|
+
}>;
|
|
41
34
|
export default _default;
|
|
42
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
36
|
new (): {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as x, computed as d, watch as z, onUnmounted as I, openBlock as R, createElementBlock as F, normalizeClass as v, createElementVNode as h, normalizeStyle as E, renderSlot as S, withDirectives as M, vShow as L } from "vue";
|
|
2
|
+
const T = ["aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
3
|
+
let m = 0, _ = "", k = "";
|
|
4
|
+
const X = /* @__PURE__ */ B({
|
|
3
5
|
__name: "Splitter",
|
|
4
6
|
props: {
|
|
5
7
|
layout: { default: "horizontal" },
|
|
@@ -8,61 +10,90 @@ const k = /* @__PURE__ */ L({
|
|
|
8
10
|
max: { default: 90 },
|
|
9
11
|
class: { default: "" },
|
|
10
12
|
lineClass: { default: "" },
|
|
11
|
-
lineStyle: { default: void 0 }
|
|
13
|
+
lineStyle: { default: void 0 },
|
|
14
|
+
hideEndPane: { type: Boolean, default: !1 }
|
|
12
15
|
},
|
|
13
16
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
setup(D, { emit: P }) {
|
|
18
|
+
const t = D, f = P, w = x(null), i = x(!1), y = d(() => Math.max(0, Math.min(100, Math.min(t.min, t.max)))), p = d(() => Math.max(0, Math.min(100, Math.max(t.min, t.max)))), s = (e) => Math.max(y.value, Math.min(p.value, e)), l = x(s(t.modelValue));
|
|
19
|
+
let r = null;
|
|
20
|
+
z(
|
|
21
|
+
() => [t.modelValue, y.value, p.value],
|
|
22
|
+
([e]) => {
|
|
23
|
+
const n = s(e);
|
|
24
|
+
l.value = n, n !== e && f("update:modelValue", n);
|
|
25
|
+
},
|
|
26
|
+
{ immediate: !0 }
|
|
27
|
+
), z(() => t.hideEndPane, (e) => {
|
|
28
|
+
e && i.value && a();
|
|
29
|
+
});
|
|
30
|
+
const A = d(() => t.hideEndPane ? t.layout === "horizontal" ? { width: "100%" } : { height: "100%" } : t.layout === "horizontal" ? { width: `${l.value}%` } : { height: `${l.value}%` }), V = d(() => t.layout === "horizontal" ? { width: `${100 - l.value}%` } : { height: `${100 - l.value}%` }), b = (e) => {
|
|
31
|
+
e instanceof MouseEvent && e.button !== 0 || i.value || (e.cancelable && e.type !== "touchstart" && e.preventDefault(), i.value = !0, m === 0 && (_ = document.body.style.cursor, k = document.body.style.userSelect), m++, document.body.style.cursor = t.layout === "horizontal" ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", c, { passive: !1 }), window.addEventListener("mouseup", a), window.addEventListener("touchmove", c, { passive: !1 }), window.addEventListener("touchend", a), window.addEventListener("touchcancel", a));
|
|
32
|
+
}, c = (e) => {
|
|
33
|
+
!i.value || !w.value || (e.cancelable && e.preventDefault(), r && cancelAnimationFrame(r), r = requestAnimationFrame(() => {
|
|
34
|
+
const n = w.value.getBoundingClientRect();
|
|
35
|
+
let o, g;
|
|
36
|
+
window.TouchEvent && e instanceof TouchEvent ? (o = e.touches[0].clientX, g = e.touches[0].clientY) : (o = e.clientX, g = e.clientY);
|
|
37
|
+
let u = 0;
|
|
38
|
+
t.layout === "horizontal" ? u = (o - n.left) / n.width * 100 : u = (g - n.top) / n.height * 100, u = s(u), l.value = u, f("update:modelValue", u);
|
|
26
39
|
}));
|
|
27
40
|
}, a = () => {
|
|
28
|
-
|
|
41
|
+
i.value && (i.value = !1, m--, m === 0 && (document.body.style.cursor = _, document.body.style.userSelect = k), r && (cancelAnimationFrame(r), r = null), window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", a), window.removeEventListener("touchmove", c), window.removeEventListener("touchend", a), window.removeEventListener("touchcancel", a));
|
|
42
|
+
}, C = (e) => {
|
|
43
|
+
let n = 0;
|
|
44
|
+
if (t.layout === "horizontal" ? e.key === "ArrowLeft" ? n = -5 : e.key === "ArrowRight" && (n = 5) : e.key === "ArrowUp" ? n = -5 : e.key === "ArrowDown" && (n = 5), n !== 0) {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
let o = l.value + n;
|
|
47
|
+
o = s(o), l.value = o, f("update:modelValue", o);
|
|
48
|
+
}
|
|
29
49
|
};
|
|
30
|
-
return
|
|
50
|
+
return I(() => {
|
|
31
51
|
a();
|
|
32
|
-
}), (
|
|
52
|
+
}), (e, n) => (R(), F("div", {
|
|
33
53
|
ref_key: "containerRef",
|
|
34
|
-
ref:
|
|
35
|
-
class: v(["flex w-full h-full overflow-hidden", [
|
|
54
|
+
ref: w,
|
|
55
|
+
class: v(["flex w-full h-full overflow-hidden", [t.layout === "vertical" ? "flex-col" : "flex-row", t.class]])
|
|
36
56
|
}, [
|
|
37
|
-
|
|
38
|
-
class: "relative overflow-hidden",
|
|
39
|
-
style:
|
|
57
|
+
h("div", {
|
|
58
|
+
class: v(["relative overflow-hidden", { "flex-1": t.hideEndPane }]),
|
|
59
|
+
style: E([{ "will-change": "transform", contain: "layout style" }, A.value])
|
|
40
60
|
}, [
|
|
41
|
-
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
61
|
+
S(e.$slots, "start")
|
|
62
|
+
], 6),
|
|
63
|
+
M(h("div", {
|
|
64
|
+
role: "separator",
|
|
65
|
+
tabindex: "0",
|
|
66
|
+
"aria-orientation": t.layout === "horizontal" ? "vertical" : "horizontal",
|
|
67
|
+
"aria-valuenow": Math.round(l.value),
|
|
68
|
+
"aria-valuemin": y.value,
|
|
69
|
+
"aria-valuemax": p.value,
|
|
70
|
+
class: v(["vl-splitter__line flex items-center justify-center bg-border/40 hover:bg-gray-150 focus:bg-gray-200 focus:outline-none transition-colors z-10 shrink-0 touch-none", [
|
|
71
|
+
t.layout === "horizontal" ? "w-1.5 cursor-col-resize h-full mx-px" : "h-1.5 cursor-row-resize w-full my-px",
|
|
72
|
+
i.value ? "bg-gray-200" : "",
|
|
73
|
+
t.lineClass
|
|
48
74
|
]]),
|
|
49
|
-
style:
|
|
50
|
-
onMousedown:
|
|
51
|
-
onTouchstart:
|
|
75
|
+
style: E(t.lineStyle),
|
|
76
|
+
onMousedown: b,
|
|
77
|
+
onTouchstart: b,
|
|
78
|
+
onKeydown: C
|
|
52
79
|
}, [
|
|
53
|
-
|
|
54
|
-
class: v(["bg-gray-300 rounded-full",
|
|
80
|
+
h("div", {
|
|
81
|
+
class: v(["bg-gray-300 rounded-full", t.layout === "horizontal" ? "h-8 w-0.5" : "w-8 h-0.5"])
|
|
55
82
|
}, null, 2)
|
|
56
|
-
],
|
|
57
|
-
|
|
83
|
+
], 46, T), [
|
|
84
|
+
[L, !t.hideEndPane]
|
|
85
|
+
]),
|
|
86
|
+
M(h("div", {
|
|
58
87
|
class: "relative overflow-hidden flex-1",
|
|
59
|
-
style:
|
|
88
|
+
style: E([{ "will-change": "transform", contain: "layout style" }, V.value])
|
|
60
89
|
}, [
|
|
61
|
-
|
|
62
|
-
], 4)
|
|
90
|
+
S(e.$slots, "end")
|
|
91
|
+
], 4), [
|
|
92
|
+
[L, !t.hideEndPane]
|
|
93
|
+
])
|
|
63
94
|
], 2));
|
|
64
95
|
}
|
|
65
96
|
});
|
|
66
97
|
export {
|
|
67
|
-
|
|
98
|
+
X as default
|
|
68
99
|
};
|
|
@@ -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.
|