vlite3 1.5.33 → 1.5.34
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/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
- package/components/Form/Form2.vue.js +3 -2
- package/components/Form/index2.vue.js +1 -1
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Timeline/Timeline.vue.d.ts +10 -3
- package/components/Timeline/Timeline.vue.js +88 -61
- package/components/Timeline/Timeline3.vue.js +5 -0
- package/docs-manifest.json +2 -2
- package/index.js +502 -501
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/timeline.type.d.ts +1 -0
- package/components/Timeline/Timeline2.vue.js +0 -4
- /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
|
@@ -7,6 +7,7 @@ import Xe from "../Accordion/Accordion.vue.js";
|
|
|
7
7
|
import S from "../Button.vue.js";
|
|
8
8
|
import Ze from "../BackButton.vue.js";
|
|
9
9
|
import _e from "../Timeline/Timeline.vue.js";
|
|
10
|
+
/* empty css */
|
|
10
11
|
import "@iconify/vue";
|
|
11
12
|
import "../../icons/IconRegistry.js";
|
|
12
13
|
import { resolveI18nText as et } from "../../utils/i18n.js";
|
|
@@ -32,7 +33,7 @@ const lt = ["onKeydown"], it = { class: "flex items-center gap-3" }, st = { clas
|
|
|
32
33
|
}, ft = {
|
|
33
34
|
key: 0,
|
|
34
35
|
class: "flex gap-3 items-center"
|
|
35
|
-
},
|
|
36
|
+
}, zt = /* @__PURE__ */ Ge({
|
|
36
37
|
__name: "Form",
|
|
37
38
|
props: {
|
|
38
39
|
schema: {},
|
|
@@ -616,5 +617,5 @@ const lt = ["onKeydown"], it = { class: "flex items-center gap-3" }, st = { clas
|
|
|
616
617
|
}
|
|
617
618
|
});
|
|
618
619
|
export {
|
|
619
|
-
|
|
620
|
+
zt as default
|
|
620
621
|
};
|
|
@@ -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";
|
|
@@ -2,6 +2,7 @@ import { defineComponent as ne, computed as h, ref as y, shallowRef as B, openBl
|
|
|
2
2
|
import me from "../Modal.vue.js";
|
|
3
3
|
import I from "../Button.vue.js";
|
|
4
4
|
import fe from "../Timeline/Timeline.vue.js";
|
|
5
|
+
/* empty css */
|
|
5
6
|
import "@iconify/vue";
|
|
6
7
|
import "../../icons/IconRegistry.js";
|
|
7
8
|
import { $t as E } from "../../utils/i18n.js";
|
|
@@ -16,7 +17,7 @@ import { showToast as j } from "../../composables/useNotifications.js";
|
|
|
16
17
|
const we = { class: "px-2" }, xe = { class: "min-h-[300px]" }, De = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "mt-4 p-3 bg-destructive/10 border border-destructive/20 rounded-lg text-sm text-destructive"
|
|
19
|
-
}, ke = { class: "list-disc pl-5 space-y-1" }, _e = { class: "flex items-center justify-between w-full" }, Ie = { key: 1 },
|
|
20
|
+
}, ke = { class: "list-disc pl-5 space-y-1" }, _e = { class: "flex items-center justify-between w-full" }, Ie = { key: 1 }, Pe = /* @__PURE__ */ ne({
|
|
20
21
|
__name: "ImportData",
|
|
21
22
|
props: {
|
|
22
23
|
title: { default: "Import Data" },
|
|
@@ -260,5 +261,5 @@ const we = { class: "px-2" }, xe = { class: "min-h-[300px]" }, De = {
|
|
|
260
261
|
}
|
|
261
262
|
});
|
|
262
263
|
export {
|
|
263
|
-
|
|
264
|
+
Pe as default
|
|
264
265
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { TimelineStep, TimelineMode, TimelineDirection, TimelineTextPosition, TimelineLineStyle, TimelineIndicatorType } from '../../types';
|
|
2
3
|
interface Props {
|
|
3
4
|
steps: TimelineStep[];
|
|
5
|
+
mode?: TimelineMode;
|
|
6
|
+
as?: string | Component;
|
|
7
|
+
gap?: number | string;
|
|
4
8
|
activeStep?: number;
|
|
5
9
|
direction?: TimelineDirection;
|
|
6
10
|
textPosition?: TimelineTextPosition;
|
|
@@ -35,7 +39,7 @@ declare function __VLS_template(): {
|
|
|
35
39
|
}): any;
|
|
36
40
|
};
|
|
37
41
|
refs: {};
|
|
38
|
-
rootEl:
|
|
42
|
+
rootEl: any;
|
|
39
43
|
};
|
|
40
44
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
45
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -43,14 +47,17 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
43
47
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
44
48
|
"onStep-click"?: (step: TimelineStep, index: number) => any;
|
|
45
49
|
}>, {
|
|
50
|
+
mode: TimelineMode;
|
|
46
51
|
class: string;
|
|
47
52
|
clickable: boolean;
|
|
48
53
|
direction: TimelineDirection;
|
|
54
|
+
gap: number | string;
|
|
49
55
|
indicatorType: TimelineIndicatorType;
|
|
50
56
|
activeStep: number;
|
|
51
57
|
textPosition: TimelineTextPosition;
|
|
52
58
|
lineStyle: TimelineLineStyle;
|
|
53
|
-
|
|
59
|
+
as: string;
|
|
60
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
61
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
62
|
export default _default;
|
|
56
63
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as V, useAttrs as z, useSlots as E, computed as S, openBlock as c, createBlock as x, createElementBlock as y, mergeProps as o, createElementVNode as b, normalizeClass as F, normalizeStyle as P, createCommentVNode as $, Fragment as w, renderList as O, isMemoSame as G, withCtx as u, renderSlot as m, cloneVNode as L, h as C, Comment as R, Text as q } from "vue";
|
|
2
|
+
import D from "./TimelineItem.vue.js";
|
|
3
|
+
const H = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "absolute top-4 left-4 right-4 h-0.5 bg-border",
|
|
6
6
|
"aria-hidden": "true"
|
|
7
|
-
},
|
|
7
|
+
}, I = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "absolute top-4 left-4 right-4 h-0.5 bg-border block sm:hidden",
|
|
10
10
|
"aria-hidden": "true"
|
|
11
|
-
},
|
|
11
|
+
}, Q = /* @__PURE__ */ V({
|
|
12
|
+
inheritAttrs: !1,
|
|
12
13
|
__name: "Timeline",
|
|
13
14
|
props: {
|
|
14
15
|
steps: {},
|
|
16
|
+
mode: { default: "progress" },
|
|
17
|
+
as: { default: "ol" },
|
|
18
|
+
gap: { default: 20 },
|
|
15
19
|
activeStep: { default: 0 },
|
|
16
20
|
direction: { default: "horizontal" },
|
|
17
21
|
textPosition: { default: "bottom" },
|
|
@@ -21,87 +25,110 @@ const j = {
|
|
|
21
25
|
class: { default: "" }
|
|
22
26
|
},
|
|
23
27
|
emits: ["step-click"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
28
|
+
setup(t, { emit: T }) {
|
|
29
|
+
const e = t, j = z(), h = E(), A = T, d = S(() => e.direction === "vertical"), v = S(() => e.steps.length <= 1 ? 0 : Math.min(e.activeStep, e.steps.length - 1) / (e.steps.length - 1) * 100), B = (i, s) => {
|
|
30
|
+
A("step-click", i, s);
|
|
31
|
+
}, g = (i) => {
|
|
32
|
+
const s = [];
|
|
33
|
+
for (const l of i)
|
|
34
|
+
if (!(l.type === R || l.type === q && !String(l.children ?? "").trim())) {
|
|
35
|
+
if (l.type === w && Array.isArray(l.children)) {
|
|
36
|
+
s.push(...g(l.children));
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
s.push(l);
|
|
40
|
+
}
|
|
41
|
+
return s;
|
|
42
|
+
}, M = () => typeof e.gap == "number" ? `${Number.isFinite(e.gap) ? Math.max(0, e.gap) : 0}px` : e.gap, N = () => {
|
|
43
|
+
const i = e.steps.flatMap((a, p) => g(h.item?.({ step: a, index: p }) ?? []).map((f) => L(f, { class: "vlite-timeline__content-item" }))), s = o(j, {
|
|
44
|
+
class: ["vlite-timeline", "vlite-timeline--content", e.class],
|
|
45
|
+
style: { "--vlite-timeline-gap": M() },
|
|
46
|
+
"data-vlite-timeline-indicator": e.indicatorType === "number" ? "number" : "dot",
|
|
47
|
+
"data-vlite-timeline-line": e.lineStyle
|
|
48
|
+
});
|
|
49
|
+
if (typeof e.as == "string") return C(e.as, s, i);
|
|
50
|
+
const l = Object.fromEntries(
|
|
51
|
+
Object.entries(h).filter(([a]) => a !== "item")
|
|
52
|
+
);
|
|
53
|
+
return l.default = () => i, C(e.as, s, l);
|
|
27
54
|
};
|
|
28
|
-
return (i,
|
|
55
|
+
return (i, s) => t.mode === "content" ? (c(), x(N, { key: 0 })) : (c(), y("nav", o({ key: 1 }, i.$attrs, {
|
|
29
56
|
"aria-label": "Progress",
|
|
30
|
-
class:
|
|
31
|
-
}, [
|
|
57
|
+
class: ["w-full pb-5", e.class]
|
|
58
|
+
}), [
|
|
32
59
|
b("ol", {
|
|
33
60
|
role: "list",
|
|
34
|
-
class:
|
|
61
|
+
class: F([
|
|
35
62
|
"relative flex",
|
|
36
|
-
|
|
37
|
-
!
|
|
38
|
-
!
|
|
63
|
+
d.value ? "flex-col space-y-0" : "",
|
|
64
|
+
!d.value && t.textPosition === "bottom" ? "flex-row w-full justify-between items-center" : "",
|
|
65
|
+
!d.value && t.textPosition === "right" ? "flex-row w-full max-sm:justify-between max-sm:items-center" : ""
|
|
39
66
|
])
|
|
40
67
|
}, [
|
|
41
|
-
!
|
|
68
|
+
!d.value && t.textPosition === "bottom" ? (c(), y("div", H, [
|
|
42
69
|
b("div", {
|
|
43
70
|
class: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
44
|
-
style:
|
|
71
|
+
style: P({ width: `${v.value}%` })
|
|
45
72
|
}, null, 4)
|
|
46
|
-
])) :
|
|
47
|
-
!
|
|
73
|
+
])) : $("", !0),
|
|
74
|
+
!d.value && t.textPosition === "right" ? (c(), y("div", I, [
|
|
48
75
|
b("div", {
|
|
49
76
|
class: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
50
|
-
style:
|
|
77
|
+
style: P({ width: `${v.value}%` })
|
|
51
78
|
}, null, 4)
|
|
52
|
-
])) :
|
|
53
|
-
(c(!0),
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
79
|
+
])) : $("", !0),
|
|
80
|
+
(c(!0), y(w, null, O(t.steps, (l, a, p, r) => {
|
|
81
|
+
const f = [
|
|
82
|
+
l,
|
|
83
|
+
a,
|
|
84
|
+
t.activeStep,
|
|
85
|
+
t.direction,
|
|
86
|
+
t.textPosition,
|
|
87
|
+
t.lineStyle,
|
|
88
|
+
t.indicatorType,
|
|
89
|
+
t.clickable,
|
|
90
|
+
t.steps.length
|
|
64
91
|
];
|
|
65
|
-
if (r && r.el && r.key ===
|
|
66
|
-
const
|
|
67
|
-
key:
|
|
68
|
-
step:
|
|
69
|
-
index:
|
|
70
|
-
"is-last":
|
|
71
|
-
"active-step":
|
|
72
|
-
direction:
|
|
73
|
-
"text-position":
|
|
74
|
-
"line-style":
|
|
75
|
-
"indicator-type":
|
|
76
|
-
clickable:
|
|
77
|
-
onStepClick:
|
|
92
|
+
if (r && r.el && r.key === l.id && G(r, f)) return r;
|
|
93
|
+
const k = (c(), x(D, {
|
|
94
|
+
key: l.id,
|
|
95
|
+
step: l,
|
|
96
|
+
index: a,
|
|
97
|
+
"is-last": a === t.steps.length - 1,
|
|
98
|
+
"active-step": t.activeStep,
|
|
99
|
+
direction: t.direction,
|
|
100
|
+
"text-position": t.textPosition,
|
|
101
|
+
"line-style": t.lineStyle,
|
|
102
|
+
"indicator-type": t.indicatorType,
|
|
103
|
+
clickable: t.clickable,
|
|
104
|
+
onStepClick: B
|
|
78
105
|
}, {
|
|
79
|
-
indicator:
|
|
80
|
-
|
|
106
|
+
indicator: u((n) => [
|
|
107
|
+
m(i.$slots, "indicator", o({ ref_for: !0 }, n))
|
|
81
108
|
]),
|
|
82
|
-
title:
|
|
83
|
-
|
|
109
|
+
title: u((n) => [
|
|
110
|
+
m(i.$slots, "title", o({ ref_for: !0 }, n))
|
|
84
111
|
]),
|
|
85
|
-
subtitle:
|
|
86
|
-
|
|
112
|
+
subtitle: u((n) => [
|
|
113
|
+
m(i.$slots, "subtitle", o({ ref_for: !0 }, n))
|
|
87
114
|
]),
|
|
88
|
-
status:
|
|
89
|
-
|
|
115
|
+
status: u((n) => [
|
|
116
|
+
m(i.$slots, "status", o({ ref_for: !0 }, n))
|
|
90
117
|
]),
|
|
91
|
-
content:
|
|
92
|
-
|
|
118
|
+
content: u((n) => [
|
|
119
|
+
m(i.$slots, "content", o({ ref_for: !0 }, n))
|
|
93
120
|
]),
|
|
94
|
-
body:
|
|
95
|
-
|
|
121
|
+
body: u((n) => [
|
|
122
|
+
m(i.$slots, "body", o({ ref_for: !0 }, n))
|
|
96
123
|
]),
|
|
97
124
|
_: 3
|
|
98
125
|
}, 8, ["step", "index", "is-last", "active-step", "direction", "text-position", "line-style", "indicator-type", "clickable"]));
|
|
99
|
-
return
|
|
100
|
-
},
|
|
126
|
+
return k.memo = f, k;
|
|
127
|
+
}, s, 0), 128))
|
|
101
128
|
], 2)
|
|
102
|
-
],
|
|
129
|
+
], 16));
|
|
103
130
|
}
|
|
104
131
|
});
|
|
105
132
|
export {
|
|
106
|
-
|
|
133
|
+
Q as default
|
|
107
134
|
};
|
package/docs-manifest.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-09-
|
|
5
|
+
"packageVersion": "1.5.34",
|
|
6
|
+
"generatedAt": "2026-09-29T14:29:27.876Z",
|
|
7
7
|
"files": {
|
|
8
8
|
"component-index.md": {
|
|
9
9
|
"sha256": "e49e0418bda4262d9181fcd9a79cce02513027b34aab865663da7e2d93e7c702"
|