vlite3 1.5.32 → 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.
@@ -173,6 +173,8 @@ declare function __VLS_template(): {
173
173
  goToSlide: (index: number, smooth?: boolean) => void;
174
174
  goNext: (smooth?: boolean) => void;
175
175
  goPrev: (smooth?: boolean) => void;
176
+ goNextPage: (smooth?: boolean) => void;
177
+ goPrevPage: (smooth?: boolean) => void;
176
178
  state: {
177
179
  readonly currentIndex: number;
178
180
  readonly isTransitioning: boolean;
@@ -350,10 +352,12 @@ declare function __VLS_template(): {
350
352
  };
351
353
  }>> & Readonly<{
352
354
  "onSlide-change"?: ((index: number) => any) | undefined;
353
- }>, "state" | "focus" | "draggable" | "direction" | "easing" | "gap" | "goNext" | "pagination" | "loop" | "speed" | "autoPlay" | "mousewheel" | "autoFocus" | "autoPlayInterval" | "currentItem" | "paginationSize" | "itemsToShow" | "paginationVisibility" | "paginationHoverEdgeThreshold" | "paginationHoverInitialTimeout" | "wheelOptions" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "canGoNext" | "canGoPrev"> & {
355
+ }>, "state" | "focus" | "draggable" | "direction" | "easing" | "gap" | "goNext" | "pagination" | "loop" | "speed" | "autoPlay" | "mousewheel" | "autoFocus" | "autoPlayInterval" | "currentItem" | "paginationSize" | "itemsToShow" | "paginationVisibility" | "paginationHoverEdgeThreshold" | "paginationHoverInitialTimeout" | "wheelOptions" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "goNextPage" | "goPrevPage" | "canGoNext" | "canGoPrev"> & {
354
356
  goToSlide: (index: number, smooth?: boolean) => void;
355
357
  goNext: (smooth?: boolean) => void;
356
358
  goPrev: (smooth?: boolean) => void;
359
+ goNextPage: (smooth?: boolean) => void;
360
+ goPrevPage: (smooth?: boolean) => void;
357
361
  state: {
358
362
  readonly currentIndex: number;
359
363
  readonly isTransitioning: boolean;
@@ -588,6 +592,8 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {
588
592
  goToSlide: (index: number, smooth?: boolean) => void;
589
593
  goNext: (smooth?: boolean) => void;
590
594
  goPrev: (smooth?: boolean) => void;
595
+ goNextPage: (smooth?: boolean) => void;
596
+ goPrevPage: (smooth?: boolean) => void;
591
597
  state: {
592
598
  readonly currentIndex: number;
593
599
  readonly isTransitioning: boolean;
@@ -765,10 +771,12 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {
765
771
  };
766
772
  }>> & Readonly<{
767
773
  "onSlide-change"?: ((index: number) => any) | undefined;
768
- }>, "state" | "focus" | "draggable" | "direction" | "easing" | "gap" | "goNext" | "pagination" | "loop" | "speed" | "autoPlay" | "mousewheel" | "autoFocus" | "autoPlayInterval" | "currentItem" | "paginationSize" | "itemsToShow" | "paginationVisibility" | "paginationHoverEdgeThreshold" | "paginationHoverInitialTimeout" | "wheelOptions" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "canGoNext" | "canGoPrev"> & {
774
+ }>, "state" | "focus" | "draggable" | "direction" | "easing" | "gap" | "goNext" | "pagination" | "loop" | "speed" | "autoPlay" | "mousewheel" | "autoFocus" | "autoPlayInterval" | "currentItem" | "paginationSize" | "itemsToShow" | "paginationVisibility" | "paginationHoverEdgeThreshold" | "paginationHoverInitialTimeout" | "wheelOptions" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "goNextPage" | "goPrevPage" | "canGoNext" | "canGoPrev"> & {
769
775
  goToSlide: (index: number, smooth?: boolean) => void;
770
776
  goNext: (smooth?: boolean) => void;
771
777
  goPrev: (smooth?: boolean) => void;
778
+ goNextPage: (smooth?: boolean) => void;
779
+ goPrevPage: (smooth?: boolean) => void;
772
780
  state: {
773
781
  readonly currentIndex: number;
774
782
  readonly isTransitioning: boolean;
@@ -4,7 +4,7 @@ import _ from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem.vue.js";
7
+ import ee from "./CommandPaletteItem2.vue.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem3.vue.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -1,4 +1,4 @@
1
- import o from "./DropdownMenu2.vue.js";
1
+ import o from "./DropdownMenu3.vue.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b2b8e35e"]]);
@@ -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
- }, It = /* @__PURE__ */ Ge({
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
- It as default
620
+ zt as default
620
621
  };
@@ -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 }, Ae = /* @__PURE__ */ ne({
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
- Ae as default
264
+ Pe as default
264
265
  };
@@ -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: {
@@ -1,6 +1,10 @@
1
- import { TimelineStep, TimelineDirection, TimelineTextPosition, TimelineLineStyle, TimelineIndicatorType } from '../../types';
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: HTMLElement;
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
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
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 p, computed as g, openBlock as c, createElementBlock as d, normalizeClass as k, createElementVNode as b, normalizeStyle as S, createCommentVNode as x, Fragment as C, renderList as B, isMemoSame as T, createBlock as z, withCtx as o, renderSlot as s, mergeProps as n } from "vue";
2
- import V from "./TimelineItem.vue.js";
3
- const j = {
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
- }, E = {
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
- }, L = /* @__PURE__ */ p({
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(e, { emit: w }) {
25
- const l = e, P = w, a = g(() => l.direction === "vertical"), y = g(() => l.steps.length <= 1 ? 0 : Math.min(l.activeStep, l.steps.length - 1) / (l.steps.length - 1) * 100), $ = (i, f) => {
26
- P("step-click", i, f);
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, f) => (c(), d("nav", {
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: k(["w-full pb-5", l.class])
31
- }, [
57
+ class: ["w-full pb-5", e.class]
58
+ }), [
32
59
  b("ol", {
33
60
  role: "list",
34
- class: k([
61
+ class: F([
35
62
  "relative flex",
36
- a.value ? "flex-col space-y-0" : "",
37
- !a.value && e.textPosition === "bottom" ? "flex-row w-full justify-between items-center" : "",
38
- !a.value && e.textPosition === "right" ? "flex-row w-full max-sm:justify-between max-sm:items-center" : ""
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
- !a.value && e.textPosition === "bottom" ? (c(), d("div", j, [
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: S({ width: `${y.value}%` })
71
+ style: P({ width: `${v.value}%` })
45
72
  }, null, 4)
46
- ])) : x("", !0),
47
- !a.value && e.textPosition === "right" ? (c(), d("div", E, [
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: S({ width: `${y.value}%` })
77
+ style: P({ width: `${v.value}%` })
51
78
  }, null, 4)
52
- ])) : x("", !0),
53
- (c(!0), d(C, null, B(e.steps, (u, m, M, r) => {
54
- const v = [
55
- u,
56
- m,
57
- e.activeStep,
58
- e.direction,
59
- e.textPosition,
60
- e.lineStyle,
61
- e.indicatorType,
62
- e.clickable,
63
- e.steps.length
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 === u.id && T(r, v)) return r;
66
- const h = (c(), z(V, {
67
- key: u.id,
68
- step: u,
69
- index: m,
70
- "is-last": m === e.steps.length - 1,
71
- "active-step": e.activeStep,
72
- direction: e.direction,
73
- "text-position": e.textPosition,
74
- "line-style": e.lineStyle,
75
- "indicator-type": e.indicatorType,
76
- clickable: e.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: o((t) => [
80
- s(i.$slots, "indicator", n({ ref_for: !0 }, t))
106
+ indicator: u((n) => [
107
+ m(i.$slots, "indicator", o({ ref_for: !0 }, n))
81
108
  ]),
82
- title: o((t) => [
83
- s(i.$slots, "title", n({ ref_for: !0 }, t))
109
+ title: u((n) => [
110
+ m(i.$slots, "title", o({ ref_for: !0 }, n))
84
111
  ]),
85
- subtitle: o((t) => [
86
- s(i.$slots, "subtitle", n({ ref_for: !0 }, t))
112
+ subtitle: u((n) => [
113
+ m(i.$slots, "subtitle", o({ ref_for: !0 }, n))
87
114
  ]),
88
- status: o((t) => [
89
- s(i.$slots, "status", n({ ref_for: !0 }, t))
115
+ status: u((n) => [
116
+ m(i.$slots, "status", o({ ref_for: !0 }, n))
90
117
  ]),
91
- content: o((t) => [
92
- s(i.$slots, "content", n({ ref_for: !0 }, t))
118
+ content: u((n) => [
119
+ m(i.$slots, "content", o({ ref_for: !0 }, n))
93
120
  ]),
94
- body: o((t) => [
95
- s(i.$slots, "body", n({ ref_for: !0 }, t))
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 h.memo = v, h;
100
- }, f, 0), 128))
126
+ return k.memo = f, k;
127
+ }, s, 0), 128))
101
128
  ], 2)
102
- ], 2));
129
+ ], 16));
103
130
  }
104
131
  });
105
132
  export {
106
- L as default
133
+ Q as default
107
134
  };
@@ -0,0 +1,5 @@
1
+ import o from "./Timeline.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -2,8 +2,8 @@
2
2
  "managedBy": "vlite3",
3
3
  "manifestVersion": 1,
4
4
  "packageName": "vlite3",
5
- "packageVersion": "1.5.32",
6
- "generatedAt": "2026-09-27T23:57:10.029Z",
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"