vlite3 1.5.18 → 1.5.20

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.
@@ -384,6 +384,10 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {
384
384
  goPrev: (smooth?: boolean) => void;
385
385
  goNextPage: (smooth?: boolean) => void;
386
386
  goPrevPage: (smooth?: boolean) => void;
387
+ focus: () => void;
388
+ state: import('vue').ComputedRef<any>;
389
+ canGoNext: import('vue').ComputedRef<any>;
390
+ canGoPrev: import('vue').ComputedRef<any>;
387
391
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
388
392
  "slide-change": (index: number) => any;
389
393
  }, string, import('vue').PublicProps, Readonly<CarouselProps> & Readonly<{
@@ -1,7 +1,7 @@
1
1
  import o from "./Carousel2.vue.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4d544a95"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-968cf839"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as f, shallowRef as g, openBlock as p, createElementBlock as c, createVNode as m, unref as h, mergeProps as v, createSlots as P, renderList as y, withCtx as S, renderSlot as B, normalizeProps as x, guardReactiveProps as T } from "vue";
2
- import w from "vue-carousel-lite";
1
+ import { defineComponent as S, shallowRef as x, computed as a, openBlock as w, createElementBlock as T, createVNode as N, unref as _, mergeProps as b, createSlots as C, renderList as k, withCtx as z, renderSlot as G, normalizeProps as R, guardReactiveProps as E } from "vue";
2
+ import I from "vue-carousel-lite";
3
3
  import "vue-carousel-lite/style.css";
4
- const N = { class: "carousel-wrapper" }, V = /* @__PURE__ */ f({
4
+ const V = { class: "carousel-wrapper" }, $ = /* @__PURE__ */ S({
5
5
  __name: "Carousel",
6
6
  props: {
7
7
  data: { default: () => [] },
@@ -37,36 +37,42 @@ const N = { class: "carousel-wrapper" }, V = /* @__PURE__ */ f({
37
37
  updateKey: { default: void 0 }
38
38
  },
39
39
  emits: ["slide-change"],
40
- setup(r, { expose: n, emit: i }) {
41
- const s = r, u = i, o = g(null);
42
- return n({
43
- goToSlide: (e, t) => {
44
- o.value?.goToSlide(e, t);
45
- },
46
- goNext: (e) => {
47
- o.value?.goNext(e);
48
- },
49
- goPrev: (e) => {
50
- o.value?.goPrev(e);
51
- },
52
- goNextPage: (e) => {
53
- o.value?.goNextPage(e);
54
- },
55
- goPrevPage: (e) => {
56
- o.value?.goPrevPage(e);
57
- }
58
- }), (e, t) => (p(), c("div", N, [
59
- m(h(w), v({
40
+ setup(r, { expose: s, emit: u }) {
41
+ const i = r, d = u, t = x(null), f = (e, o) => {
42
+ t.value?.goToSlide(e, o);
43
+ }, p = (e) => {
44
+ t.value?.goNext(e);
45
+ }, c = (e) => {
46
+ t.value?.goPrev(e);
47
+ }, g = (e) => {
48
+ t.value?.goNextPage(e);
49
+ }, m = (e) => {
50
+ t.value?.goPrevPage(e);
51
+ }, v = () => {
52
+ t.value?.focus?.();
53
+ }, h = a(() => t.value?.state), P = a(() => t.value?.canGoNext ?? !0), y = a(() => t.value?.canGoPrev ?? !1);
54
+ return s({
55
+ goToSlide: f,
56
+ goNext: p,
57
+ goPrev: c,
58
+ goNextPage: g,
59
+ goPrevPage: m,
60
+ focus: v,
61
+ state: h,
62
+ canGoNext: P,
63
+ canGoPrev: y
64
+ }), (e, o) => (w(), T("div", V, [
65
+ N(_(I), b({
60
66
  ref_key: "carouselRef",
61
- ref: o
62
- }, s, {
67
+ ref: t
68
+ }, i, {
63
69
  style: { height: "100%", width: "100%" },
64
- onSlideChange: t[0] || (t[0] = (a) => u("slide-change", a))
65
- }), P({ _: 2 }, [
66
- y(e.$slots, (a, l) => ({
67
- name: l,
68
- fn: S((d) => [
69
- B(e.$slots, l, x(T(d || {})), void 0, !0)
70
+ onSlideChange: o[0] || (o[0] = (l) => d("slide-change", l))
71
+ }), C({ _: 2 }, [
72
+ k(e.$slots, (l, n) => ({
73
+ name: n,
74
+ fn: z((B) => [
75
+ G(e.$slots, n, R(E(B || {})), void 0, !0)
70
76
  ])
71
77
  }))
72
78
  ]), 1040)
@@ -74,5 +80,5 @@ const N = { class: "carousel-wrapper" }, V = /* @__PURE__ */ f({
74
80
  }
75
81
  });
76
82
  export {
77
- V as default
83
+ $ as default
78
84
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./EditableTitle2.vue.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f66e1f22"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ff749f41"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };