@wikicasa-dev/components 2.5.3-alpha.20 → 2.5.3-alpha.22

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.
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Autoplay as p } from "swiper/modules";
3
3
  export {
4
4
  p as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-keyboard.css';/* empty css */
1
+ import '../../assets/swiper-thumbs.css';/* empty css */
2
2
  import { Thumbs as t } from "swiper/modules";
3
3
  export {
4
4
  t as default
@@ -1 +1 @@
1
- .no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}
1
+ .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
@@ -0,0 +1 @@
1
+ .no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}
@@ -1 +1 @@
1
- .swiper.uikit-carousel[data-v-66f4b869]{opacity:0}.swiper.uikit-carousel.is-initialized[data-v-66f4b869]{opacity:1}
1
+ .swiper.uikit-carousel[data-v-0ba89269]{opacity:0}.swiper.uikit-carousel.is-initialized[data-v-0ba89269]{opacity:1}
@@ -1,5 +1,5 @@
1
1
  import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
2
- import '../../../assets/SwiperPaginationPrimitive.css';/* empty css */
2
+ import '../../../assets/SwiperCarousel.css';/* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -3,9 +3,9 @@ import { addModuleDescriptorKey as d, setLazyImagesLoaderKey as f } from "../../
3
3
  import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';/* empty css */
4
4
  /* empty css */
5
5
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-66f4b869"]]);
6
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0ba89269"]]);
7
7
  export {
8
8
  d as addModuleDescriptorKey,
9
- p as default,
9
+ m as default,
10
10
  f as setLazyImagesLoaderKey
11
11
  };
@@ -1,5 +1,5 @@
1
1
  import o from "../../packages/components/lib/components/carousel/SwiperCarousel.vue.js";
2
- import '../../assets/SwiperCarousel.css';import '../../assets/SwiperPaginationPrimitive.css';/* empty css */
2
+ import '../../assets/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
3
3
  /* empty css */
4
4
  import r from "../../_virtual/_plugin-vue_export-helper.js";
5
5
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f8f3d52a"]]);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
2
2
  import { default as g } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
3
- import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperPaginationPrimitive.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseCard.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/AccessibleSelect.css';import './assets/RadioButtonItem.css';import './assets/BaseTabsIndicator.css';import './assets/BaseTabs.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
3
+ import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperCarousel.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseCard.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/AccessibleSelect.css';import './assets/RadioButtonItem.css';import './assets/BaseTabsIndicator.css';import './assets/BaseTabs.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
4
4
  import { default as C } from "./packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js";
5
5
  import { default as I } from "./packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js";
6
6
  import { default as A } from "./packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js";
@@ -1,37 +1,39 @@
1
- import { defineComponent as V, shallowRef as w, useTemplateRef as x, onMounted as N, provide as I, createElementBlock as P, openBlock as k, createElementVNode as A, createCommentVNode as g, normalizeClass as B, renderSlot as T, nextTick as K } from "vue";
2
- import { createSwiper as R } from "../../../../../../Swiper/factory.js";
3
- import { AutoplayModule as D } from "../../../../../../Swiper/Autoplay/factory.js";
4
- import { KeyboardModule as U } from "../../../../../../Swiper/Keyboard/factory.js";
5
- import { ZoomModule as $ } from "../../../../../../Swiper/Zoom/factory.js";
6
- const q = { class: "uikit-relative" }, Z = {
1
+ import { defineComponent as V, shallowRef as w, useTemplateRef as A, onMounted as x, provide as I, createElementBlock as P, openBlock as k, createElementVNode as N, createCommentVNode as g, normalizeClass as q, renderSlot as S } from "vue";
2
+ import { createSwiper as B } from "../../../../../../Swiper/factory.js";
3
+ import { AutoplayModule as K } from "../../../../../../Swiper/Autoplay/factory.js";
4
+ import { KeyboardModule as R } from "../../../../../../Swiper/Keyboard/factory.js";
5
+ import { ZoomModule as D } from "../../../../../../Swiper/Zoom/factory.js";
6
+ const F = { class: "uikit-relative" }, U = {
7
7
  key: 0,
8
8
  class: "uikit-absolute uikit-inset-0"
9
- }, j = /* @__PURE__ */ Symbol(), F = /* @__PURE__ */ Symbol(), Y = /* @__PURE__ */ V({
9
+ }, $ = /* @__PURE__ */ Symbol(), Z = /* @__PURE__ */ Symbol(), X = /* @__PURE__ */ V({
10
10
  __name: "SwiperRootPrimitive",
11
11
  props: {
12
12
  rootClasses: {},
13
13
  swiperOptions: {}
14
14
  },
15
15
  emits: ["moved", "click", "init"],
16
- setup(o, { expose: S, emit: h }) {
17
- const d = h, s = w(null), u = x("root"), l = w(!1), E = !!o.swiperOptions?.keyboard, O = !!o.swiperOptions?.autoplay, m = [];
18
- let c = !1;
16
+ setup(o, { expose: T, emit: h }) {
17
+ const c = h, s = w(null), u = A("root"), l = w(!1), E = !!o.swiperOptions?.keyboard, O = !!o.swiperOptions?.autoplay, m = [];
18
+ let d = !1;
19
19
  const b = (e) => [
20
20
  ...e?.querySelectorAll("img[data-src]") ?? []
21
21
  ], p = (e) => {
22
22
  e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy");
23
23
  }, v = (e, t) => {
24
- if (!c) return [];
24
+ if (!d) return [];
25
25
  const i = e.params.lazyPreloadPrevNext ?? 0, a = [];
26
26
  for (let n = t - i; n <= t + i; n++)
27
27
  a.push(...b(e.slides[n]));
28
28
  return a;
29
29
  }, f = () => {
30
- K(() => {
31
- l.value = !0, d("init");
30
+ requestAnimationFrame(() => {
31
+ requestAnimationFrame(() => {
32
+ l.value = !0, c("init");
33
+ });
32
34
  });
33
35
  }, z = async (e) => {
34
- s.value = await R(
36
+ s.value = await B(
35
37
  e,
36
38
  {
37
39
  on: {
@@ -59,7 +61,7 @@ const q = { class: "uikit-relative" }, Z = {
59
61
  await Promise.race([L, n]), f();
60
62
  },
61
63
  slideChange: (t) => {
62
- d("moved", { activeIndex: t.activeIndex }), v(t, t.activeIndex).forEach(
64
+ c("moved", { activeIndex: t.activeIndex }), v(t, t.activeIndex).forEach(
63
65
  p
64
66
  );
65
67
  }
@@ -67,41 +69,41 @@ const q = { class: "uikit-relative" }, Z = {
67
69
  ...o.swiperOptions
68
70
  },
69
71
  [
70
- $(o.swiperOptions?.zoom),
71
- E ? U(o.swiperOptions?.keyboard) : void 0,
72
- O ? D(o.swiperOptions.autoplay) : void 0,
72
+ D(o.swiperOptions?.zoom),
73
+ E ? R(o.swiperOptions?.keyboard) : void 0,
74
+ O ? K(o.swiperOptions.autoplay) : void 0,
73
75
  ...m
74
76
  ].filter(Boolean)
75
77
  );
76
78
  };
77
- N(() => {
79
+ x(() => {
78
80
  u.value && setTimeout(() => z(u.value));
79
81
  });
80
82
  const C = (e) => {
81
83
  !s.value || s.value.params.slidesPerView === e || (s.value.params.slidesPerView = e, s.value.update());
82
84
  };
83
- return I(F, (e) => {
85
+ return I(Z, (e) => {
84
86
  e && m.push(e);
85
- }), I(j, (e) => {
86
- e !== c && (c = e);
87
- }), S({
87
+ }), I($, (e) => {
88
+ e !== d && (d = e);
89
+ }), T({
88
90
  swiper: s,
89
91
  updateSlidesPerView: C
90
- }), (e, t) => (k(), P("div", q, [
91
- A("div", {
92
+ }), (e, t) => (k(), P("div", F, [
93
+ N("div", {
92
94
  ref: "root",
93
- class: B(["swiper uikit-carousel", [{ "is-initialized": l.value }, o.rootClasses]])
95
+ class: q(["swiper uikit-carousel", [{ "is-initialized": l.value }, o.rootClasses]])
94
96
  }, [
95
- T(e.$slots, "default", {}, void 0, !0)
97
+ S(e.$slots, "default", {}, void 0, !0)
96
98
  ], 2),
97
- l.value ? g("", !0) : (k(), P("div", Z, [
98
- T(e.$slots, "placeholder", {}, void 0, !0)
99
+ l.value ? g("", !0) : (k(), P("div", U, [
100
+ S(e.$slots, "placeholder", {}, void 0, !0)
99
101
  ]))
100
102
  ]));
101
103
  }
102
104
  });
103
105
  export {
104
- F as addModuleDescriptorKey,
105
- Y as default,
106
- j as setLazyImagesLoaderKey
106
+ Z as addModuleDescriptorKey,
107
+ X as default,
108
+ $ as setLazyImagesLoaderKey
107
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.5.3-alpha.20",
3
+ "version": "2.5.3-alpha.22",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1 +0,0 @@
1
- .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}