@wikicasa-dev/components 2.6.13 → 2.6.14-alpha.0

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.
Files changed (215) hide show
  1. package/dist/UIKit/AccessibleSelect.js +5 -5
  2. package/dist/UIKit/AccessibleSelect.vue.js +217 -205
  3. package/dist/UIKit/Accordion/AccordionContentPrimitive.js +5 -4
  4. package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +19 -21
  5. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +5 -4
  6. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +18 -20
  7. package/dist/UIKit/Accordion/AccordionItemPrimitive.js +5 -4
  8. package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +21 -23
  9. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +5 -4
  10. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +19 -21
  11. package/dist/UIKit/Accordion/BaseAccordion.js +5 -4
  12. package/dist/UIKit/Accordion/BaseAccordion.vue.js +38 -36
  13. package/dist/UIKit/Accordion/BaseAccordionItem.js +5 -5
  14. package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +64 -81
  15. package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +5 -5
  16. package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +232 -226
  17. package/dist/UIKit/BaseAlert.js +5 -5
  18. package/dist/UIKit/BaseAlert.vue.js +14 -18
  19. package/dist/UIKit/BaseAutocomplete.js +5 -5
  20. package/dist/UIKit/BaseAutocomplete.vue.js +197 -194
  21. package/dist/UIKit/BaseBadge.js +5 -5
  22. package/dist/UIKit/BaseBadge.vue.js +17 -17
  23. package/dist/UIKit/BaseBreadcrumb.js +5 -4
  24. package/dist/UIKit/BaseBreadcrumb.vue.js +39 -56
  25. package/dist/UIKit/BaseButton.js +5 -4
  26. package/dist/UIKit/BaseButton.vue.js +93 -87
  27. package/dist/UIKit/BaseComplexToggle.js +5 -6
  28. package/dist/UIKit/BaseComplexToggle.vue.js +87 -105
  29. package/dist/UIKit/BaseDropDown.js +5 -5
  30. package/dist/UIKit/BaseDropDown.vue.js +171 -152
  31. package/dist/UIKit/BaseFloatingLabel.js +6 -7
  32. package/dist/UIKit/BaseFloatingLabel.vue.js +43 -39
  33. package/dist/UIKit/BaseInput.js +6 -7
  34. package/dist/UIKit/BaseInput.vue.js +191 -210
  35. package/dist/UIKit/BaseModal.js +5 -5
  36. package/dist/UIKit/BaseModal.vue.js +160 -169
  37. package/dist/UIKit/BasePagination.js +5 -4
  38. package/dist/UIKit/BasePagination.vue.js +192 -229
  39. package/dist/UIKit/BaseSelect/SelectItem.js +5 -4
  40. package/dist/UIKit/BaseSelect/SelectItem.vue.js +34 -41
  41. package/dist/UIKit/BaseSlider.js +6 -7
  42. package/dist/UIKit/BaseSlider.vue.js +153 -203
  43. package/dist/UIKit/BaseSnackbar.js +5 -5
  44. package/dist/UIKit/BaseSnackbar.vue.js +144 -146
  45. package/dist/UIKit/BaseTextarea.js +5 -6
  46. package/dist/UIKit/BaseTextarea.vue.js +118 -126
  47. package/dist/UIKit/BaseToggle.js +5 -4
  48. package/dist/UIKit/BaseToggle.vue.js +37 -38
  49. package/dist/UIKit/BaseTooltip.js +6 -7
  50. package/dist/UIKit/BaseTooltip.vue.js +31 -40
  51. package/dist/UIKit/BaseUploadFile.js +5 -4
  52. package/dist/UIKit/BaseUploadFile.vue.js +63 -70
  53. package/dist/UIKit/Card/BaseCard.js +5 -5
  54. package/dist/UIKit/Card/BaseCard.vue.js +23 -36
  55. package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -11
  56. package/dist/UIKit/Card/CardImagePrimitive.js +5 -4
  57. package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -15
  58. package/dist/UIKit/Card/CardRootPrimitive.js +5 -5
  59. package/dist/UIKit/Card/CardRootPrimitive.vue.js +22 -26
  60. package/dist/UIKit/Card/type.js +4 -4
  61. package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -5
  62. package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -81
  63. package/dist/UIKit/Checkbox/CheckboxGroup.js +5 -4
  64. package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +137 -116
  65. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +5 -4
  66. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +71 -77
  67. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +5 -4
  68. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +32 -34
  69. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +5 -4
  70. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +32 -34
  71. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +5 -4
  72. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +15 -15
  73. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +5 -4
  74. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +29 -31
  75. package/dist/UIKit/Radio/RadioButton.js +5 -4
  76. package/dist/UIKit/Radio/RadioButton.vue.js +51 -59
  77. package/dist/UIKit/Radio/RadioGroup.js +5 -4
  78. package/dist/UIKit/Radio/RadioGroup.vue.js +67 -63
  79. package/dist/UIKit/Radio/v2/RadioButtonGroup.js +5 -4
  80. package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +38 -47
  81. package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -5
  82. package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +42 -44
  83. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +5 -4
  84. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +28 -30
  85. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +6 -7
  86. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -19
  87. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +5 -4
  88. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -30
  89. package/dist/UIKit/Slider/SimpleSlider.js +6 -7
  90. package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -81
  91. package/dist/UIKit/StaticSpinner.js +6 -7
  92. package/dist/UIKit/StaticSpinner.vue.js +24 -26
  93. package/dist/UIKit/Tab/BaseTab.js +5 -4
  94. package/dist/UIKit/Tab/BaseTab.vue.js +14 -14
  95. package/dist/UIKit/Tab/BaseTabList.js +5 -4
  96. package/dist/UIKit/Tab/BaseTabList.vue.js +45 -44
  97. package/dist/UIKit/Tab/BaseTabPanel.js +5 -4
  98. package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -24
  99. package/dist/UIKit/Tab/BaseTabView.js +5 -4
  100. package/dist/UIKit/Tab/BaseTabView.vue.js +107 -105
  101. package/dist/UIKit/Tab/v2/BaseTabs.js +5 -5
  102. package/dist/UIKit/Tab/v2/BaseTabs.vue.js +34 -38
  103. package/dist/UIKit/Tab/v2/BaseTabsContent.js +5 -4
  104. package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +21 -23
  105. package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +5 -5
  106. package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +24 -33
  107. package/dist/UIKit/Tab/v2/BaseTabsList.js +5 -4
  108. package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +20 -22
  109. package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +5 -4
  110. package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +21 -30
  111. package/dist/UIKit/types.js +0 -1
  112. package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
  113. package/dist/assets/AccessibleSelect.css +1 -1
  114. package/dist/assets/BaseAccordionItem.css +1 -1
  115. package/dist/assets/BaseAutocomplete.css +1 -1
  116. package/dist/assets/BaseBadge.css +1 -1
  117. package/dist/assets/BaseComplexToggle2.css +1 -1
  118. package/dist/assets/BaseDropDown.css +1 -1
  119. package/dist/assets/BaseFloatingLabel2.css +1 -1
  120. package/dist/assets/BaseInput2.css +1 -1
  121. package/dist/assets/BaseShimmerLoader.css +1 -1
  122. package/dist/assets/BaseSlider2.css +1 -1
  123. package/dist/assets/BaseSnackbar.css +1 -1
  124. package/dist/assets/BaseTabs.css +1 -1
  125. package/dist/assets/BaseTextarea2.css +1 -1
  126. package/dist/assets/BaseTooltip2.css +1 -1
  127. package/dist/assets/CheckboxBtn.css +1 -1
  128. package/dist/assets/ClearableAutocomplete.css +1 -1
  129. package/dist/assets/RadioButtonItem.css +1 -1
  130. package/dist/assets/StaticSpinner.css +1 -1
  131. package/dist/assets/SwiperCarousel.css +1 -1
  132. package/dist/assets/baseAlert.css +1 -1
  133. package/dist/assets/baseCard.css +1 -1
  134. package/dist/assets/baseComplexToggle.css +1 -1
  135. package/dist/assets/baseFloatingLabel.css +1 -1
  136. package/dist/assets/baseInput.css +1 -1
  137. package/dist/assets/baseModal.css +1 -1
  138. package/dist/assets/baseSlider.css +1 -1
  139. package/dist/assets/baseSpinner.css +1 -1
  140. package/dist/assets/baseTextarea.css +1 -1
  141. package/dist/assets/baseTooltip.css +1 -1
  142. package/dist/assets/swiper-free-mode.css +1 -1
  143. package/dist/assets/swiper-navigation.css +1 -1
  144. package/dist/assets/swiper-pagination.css +1 -1
  145. package/dist/assets/swiper-swiper.css +1 -1
  146. package/dist/assets/swiper-thumbs.css +1 -0
  147. package/dist/assets/swiper-zoom.css +1 -1
  148. package/dist/assets/swiperPaginationBullet.css +1 -1
  149. package/dist/assets/tailwind.css +1 -1
  150. package/dist/chart/DoughnutChart.js +5 -4
  151. package/dist/chart/DoughnutChart.vue.js +25 -25
  152. package/dist/chart/LineChart.js +5 -4
  153. package/dist/chart/LineChart.vue.js +27 -29
  154. package/dist/components/IntersectionObserver/IntersectionObservable.js +5 -4
  155. package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -23
  156. package/dist/components/IntersectionObserver/IntersectionObserver.js +5 -4
  157. package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +55 -49
  158. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +5 -4
  159. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -38
  160. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +5 -4
  161. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +27 -30
  162. package/dist/components/IntersectionObserver/v2/types.js +4 -6
  163. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -4
  164. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -38
  165. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +5 -4
  166. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +28 -32
  167. package/dist/components/carousel/Primitive/SwiperPrimitive.js +5 -4
  168. package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -20
  169. package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -10
  170. package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +82 -112
  171. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +5 -5
  172. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -39
  173. package/dist/components/carousel/SwiperCarousel.js +6 -7
  174. package/dist/components/carousel/SwiperCarousel.vue.js +195 -229
  175. package/dist/components/carousel/SwiperSlide.js +9 -13
  176. package/dist/composables/mock.js +50 -48
  177. package/dist/composables/useFloatingLabel.js +32 -32
  178. package/dist/composables/useValidator.js +5 -7
  179. package/dist/index.js +67 -150
  180. package/dist/lazyModules/ChartJs/Chart.js +2 -4
  181. package/dist/lazyModules/ChartJs/DoughnutChart/core.js +5 -6
  182. package/dist/lazyModules/ChartJs/LineChart/cartesian.js +5 -6
  183. package/dist/lazyModules/ChartJs/LineChart/core.js +5 -6
  184. package/dist/lazyModules/ChartJs/Plugins/Legend.js +4 -2
  185. package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -2
  186. package/dist/lazyModules/ChartJs/Plugins/Title.js +4 -2
  187. package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +4 -2
  188. package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -8
  189. package/dist/lazyModules/Swiper/Autoplay/index.js +3 -6
  190. package/dist/lazyModules/Swiper/Controller/factory.js +6 -6
  191. package/dist/lazyModules/Swiper/Controller/index.js +3 -6
  192. package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -8
  193. package/dist/lazyModules/Swiper/FreeMode/index.js +3 -6
  194. package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -8
  195. package/dist/lazyModules/Swiper/Keyboard/index.js +3 -6
  196. package/dist/lazyModules/Swiper/Navigation/factory.js +6 -8
  197. package/dist/lazyModules/Swiper/Navigation/index.js +3 -6
  198. package/dist/lazyModules/Swiper/Pagination/factory.js +6 -6
  199. package/dist/lazyModules/Swiper/Pagination/index.js +3 -6
  200. package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -6
  201. package/dist/lazyModules/Swiper/Thumbs/index.js +3 -6
  202. package/dist/lazyModules/Swiper/Zoom/factory.js +6 -8
  203. package/dist/lazyModules/Swiper/Zoom/index.js +3 -6
  204. package/dist/lazyModules/Swiper/factory.js +9 -12
  205. package/dist/lazyModules/Swiper/index.js +2 -4
  206. package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
  207. package/dist/lazyModules/Swiper/types.js +0 -1
  208. package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -11
  209. package/dist/lazyModules/VueChartJs/Doughnut/index.js +2 -5
  210. package/dist/lazyModules/VueChartJs/Line/factory.js +8 -13
  211. package/dist/lazyModules/VueChartJs/Line/index.js +2 -5
  212. package/dist/types/index.js +0 -1
  213. package/dist/types.js +0 -1
  214. package/dist/utils.js +4 -5
  215. package/package.json +8 -8
@@ -1,39 +1,44 @@
1
- import { defineComponent as m, shallowRef as a, provide as i, onBeforeMount as b, onBeforeUnmount as h, renderSlot as p } from "vue";
2
- import { VisibleTargetsKey as g, ObserveTargetKey as O, UnobserveTargetKey as y } from "./types.js";
3
- const T = /* @__PURE__ */ m({
4
- __name: "IntersectionObserverProvider",
5
- props: {
6
- emitOnce: { type: Boolean, default: !1 },
7
- skip: { type: Boolean, default: !1 },
8
- threshold: { default: 0 }
9
- },
10
- emits: ["intersection"],
11
- setup(n, { emit: c }) {
12
- const u = c, r = a(/* @__PURE__ */ new Set()), t = a(), d = (e) => {
13
- n.skip || e.forEach(({ target: l, isIntersecting: f }) => {
14
- const o = l.getAttribute("target-id");
15
- if (!o) return;
16
- const s = new Set(r.value);
17
- f ? (s.add(o), u("intersection"), n.emitOnce && t.value?.disconnect()) : s.delete(o), r.value = s;
18
- });
19
- }, v = () => {
20
- t.value?.disconnect();
21
- };
22
- return i(g, r), i(O, (e) => {
23
- t.value?.observe(e);
24
- }), i(y, (e) => {
25
- t.value?.unobserve(e);
26
- }), b(() => {
27
- t.value = new IntersectionObserver(d, {
28
- root: null,
29
- //if the root is null, then we will check if the target is visible in the doc root!
30
- threshold: n.threshold
31
- });
32
- }), h(() => {
33
- v();
34
- }), (e, l) => p(e.$slots, "default", { observer: t.value });
35
- }
1
+ import { ObserveTargetKey as e, UnobserveTargetKey as t, VisibleTargetsKey as n } from "./types.js";
2
+ import { defineComponent as r, onBeforeMount as i, onBeforeUnmount as a, provide as o, renderSlot as s, shallowRef as c } from "vue";
3
+ //#region lib/components/IntersectionObserver/v2/IntersectionObserverProvider.vue?vue&type=script&setup=true&lang.ts
4
+ var l = /*@__PURE__*/ r({
5
+ __name: "IntersectionObserverProvider",
6
+ props: {
7
+ emitOnce: {
8
+ type: Boolean,
9
+ default: !1
10
+ },
11
+ skip: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ threshold: { default: 0 }
16
+ },
17
+ emits: ["intersection"],
18
+ setup(r, { emit: l }) {
19
+ let u = l, d = c(/* @__PURE__ */ new Set()), f = c(), p = (e) => {
20
+ r.skip || e.forEach(({ target: e, isIntersecting: t }) => {
21
+ let n = e.getAttribute("target-id");
22
+ if (!n) return;
23
+ let i = new Set(d.value);
24
+ t ? (i.add(n), u("intersection"), r.emitOnce && f.value?.disconnect()) : i.delete(n), d.value = i;
25
+ });
26
+ }, m = () => {
27
+ f.value?.disconnect();
28
+ };
29
+ return o(n, d), o(e, (e) => {
30
+ f.value?.observe(e);
31
+ }), o(t, (e) => {
32
+ f.value?.unobserve(e);
33
+ }), i(() => {
34
+ f.value = new IntersectionObserver(p, {
35
+ root: null,
36
+ threshold: r.threshold
37
+ });
38
+ }), a(() => {
39
+ m();
40
+ }), (e, t) => s(e.$slots, "default", { observer: f.value });
41
+ }
36
42
  });
37
- export {
38
- T as default
39
- };
43
+ //#endregion
44
+ export { l as default };
@@ -1,4 +1,5 @@
1
- import f from "./IntersectionObserverTarget.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./IntersectionObserverTarget.vue.js";
2
+ //#region lib/components/IntersectionObserver/v2/IntersectionObserverTarget.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,31 +1,28 @@
1
- import { defineComponent as v, useTemplateRef as d, useId as b, inject as s, computed as m, onMounted as g, watch as p, openBlock as T, createElementBlock as y, unref as k, renderSlot as u } from "vue";
2
- import { VisibleTargetsKey as O, ObserveTargetKey as _, UnobserveTargetKey as h } from "./types.js";
3
- const V = ["target-id"], I = /* @__PURE__ */ v({
4
- __name: "IntersectionObserverTarget",
5
- props: {
6
- observeOnce: { type: Boolean, default: !0 }
7
- },
8
- setup(n) {
9
- const e = d("root"), i = b(), c = s(O, void 0), f = s(_, void 0), a = s(h, void 0), t = m(
10
- () => c?.value.has(i) || !1
11
- );
12
- return g(() => {
13
- e.value && f?.(e.value);
14
- }), p([t, e], ([r, o], [, l]) => {
15
- n.observeOnce && r && (o && a?.(o), l && a?.(l));
16
- }), (r, o) => !n.observeOnce || !t.value ? (T(), y("div", {
17
- key: 0,
18
- ref_key: "root",
19
- ref: e,
20
- "target-id": k(i)
21
- }, [
22
- u(r.$slots, "default", { isVisible: t.value })
23
- ], 8, V)) : u(r.$slots, "default", {
24
- key: 1,
25
- isVisible: t.value
26
- });
27
- }
1
+ import { ObserveTargetKey as e, UnobserveTargetKey as t, VisibleTargetsKey as n } from "./types.js";
2
+ import { computed as r, createElementBlock as i, defineComponent as a, inject as o, onMounted as s, openBlock as c, renderSlot as l, unref as u, useId as d, useTemplateRef as f, watch as p } from "vue";
3
+ //#region lib/components/IntersectionObserver/v2/IntersectionObserverTarget.vue?vue&type=script&setup=true&lang.ts
4
+ var m = ["target-id"], h = /*@__PURE__*/ a({
5
+ __name: "IntersectionObserverTarget",
6
+ props: { observeOnce: {
7
+ type: Boolean,
8
+ default: !0
9
+ } },
10
+ setup(a) {
11
+ let h = f("root"), g = d(), _ = o(n, void 0), v = o(e, void 0), y = o(t, void 0), b = r(() => _?.value.has(g) || !1);
12
+ return s(() => {
13
+ h.value && v?.(h.value);
14
+ }), p([b, h], ([e, t], [, n]) => {
15
+ a.observeOnce && e && (t && y?.(t), n && y?.(n));
16
+ }), (e, t) => !a.observeOnce || !b.value ? (c(), i("div", {
17
+ key: 0,
18
+ ref_key: "root",
19
+ ref: h,
20
+ "target-id": u(g)
21
+ }, [l(e.$slots, "default", { isVisible: b.value })], 8, m)) : l(e.$slots, "default", {
22
+ key: 1,
23
+ isVisible: b.value
24
+ });
25
+ }
28
26
  });
29
- export {
30
- I as default
31
- };
27
+ //#endregion
28
+ export { h as default };
@@ -1,6 +1,4 @@
1
- const e = /* @__PURE__ */ Symbol(), o = /* @__PURE__ */ Symbol(), s = /* @__PURE__ */ Symbol();
2
- export {
3
- e as ObserveTargetKey,
4
- o as UnobserveTargetKey,
5
- s as VisibleTargetsKey
6
- };
1
+ //#region lib/components/IntersectionObserver/v2/types.ts
2
+ var e = Symbol(), t = Symbol(), n = Symbol();
3
+ //#endregion
4
+ export { e as ObserveTargetKey, t as UnobserveTargetKey, n as VisibleTargetsKey };
@@ -1,4 +1,5 @@
1
- import f from "./SwiperNavigationPrimitive.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./SwiperNavigationPrimitive.vue.js";
2
+ //#region lib/components/carousel/Primitive/SwiperNavigationPrimitive.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,39 +1,31 @@
1
- import { defineComponent as p, inject as s, openBlock as a, createElementBlock as l, Fragment as d, createElementVNode as e, withModifiers as i } from "vue";
2
- import { NavigationModule as u } from "../../../lazyModules/Swiper/Navigation/factory.js";
3
- import { addModuleDescriptorKey as m } from "./SwiperRootPrimitive.vue.js";
4
- import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';/* empty css */
5
- /* empty css */
6
- const k = /* @__PURE__ */ p({
7
- __name: "SwiperNavigationPrimitive",
8
- props: {
9
- options: { type: [Object, Boolean], default: !0 }
10
- },
11
- setup(o) {
12
- const n = {
13
- nextEl: ".swiper-button-next",
14
- prevEl: ".swiper-button-prev"
15
- }, r = s(m, void 0);
16
- return o.options && r?.(
17
- u({
18
- ...n,
19
- ...typeof o.options == "boolean" ? {} : o.options
20
- })
21
- ), (f, t) => (a(), l(d, null, [
22
- e("div", {
23
- class: "swiper-button-prev",
24
- "data-cy": "swiper-button-prev",
25
- onClick: t[0] || (t[0] = i(() => {
26
- }, ["stop"]))
27
- }),
28
- e("div", {
29
- class: "swiper-button-next",
30
- "data-cy": "swiper-button-next",
31
- onClick: t[1] || (t[1] = i(() => {
32
- }, ["stop"]))
33
- })
34
- ], 64));
35
- }
1
+ import { NavigationModule as e } from "../../../lazyModules/Swiper/Navigation/factory.js";
2
+ import { addModuleDescriptorKey as t } from "./SwiperRootPrimitive.vue.js";
3
+ import { Fragment as n, createElementBlock as r, createElementVNode as i, defineComponent as a, inject as o, openBlock as s, withModifiers as c } from "vue";
4
+ //#region lib/components/carousel/Primitive/SwiperNavigationPrimitive.vue?vue&type=script&setup=true&lang.ts
5
+ var l = /*@__PURE__*/ a({
6
+ __name: "SwiperNavigationPrimitive",
7
+ props: { options: {
8
+ type: [Object, Boolean],
9
+ default: !0
10
+ } },
11
+ setup(a) {
12
+ let l = {
13
+ nextEl: ".swiper-button-next",
14
+ prevEl: ".swiper-button-prev"
15
+ }, u = o(t, void 0);
16
+ return a.options && u?.(e({
17
+ ...l,
18
+ ...typeof a.options == "boolean" ? {} : a.options
19
+ })), (e, t) => (s(), r(n, null, [i("div", {
20
+ class: "swiper-button-prev",
21
+ "data-cy": "swiper-button-prev",
22
+ onClick: t[0] ||= c(() => {}, ["stop"])
23
+ }), i("div", {
24
+ class: "swiper-button-next",
25
+ "data-cy": "swiper-button-next",
26
+ onClick: t[1] ||= c(() => {}, ["stop"])
27
+ })], 64));
28
+ }
36
29
  });
37
- export {
38
- k as default
39
- };
30
+ //#endregion
31
+ export { l as default };
@@ -1,4 +1,5 @@
1
- import f from "./SwiperPaginationPrimitive.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./SwiperPaginationPrimitive.vue.js";
2
+ //#region lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,35 +1,31 @@
1
- import { defineComponent as r, inject as a, openBlock as p, createElementBlock as s, withModifiers as d } from "vue";
2
- import { addModuleDescriptorKey as c } from "./SwiperRootPrimitive.vue.js";
3
- import '../../../assets/swiperPaginationBullet.css';import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';/* empty css */
4
- /* empty css */
5
- import { PaginationModule as u } from "../../../lazyModules/Swiper/Pagination/factory.js";
6
- /* empty css */
7
- const x = /* @__PURE__ */ r({
8
- __name: "SwiperPaginationPrimitive",
9
- props: {
10
- options: { type: [Object, Boolean], default: !0 }
11
- },
12
- setup(t) {
13
- const n = {
14
- el: ".swiper-pagination",
15
- renderFraction: (o, i) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
16
- <span data-cy="swiper-pagination-current" class="${o}"></span>
1
+ import { PaginationModule as e } from "../../../lazyModules/Swiper/Pagination/factory.js";
2
+ import '../../../assets/swiperPaginationBullet.css';/* empty css */
3
+ import { addModuleDescriptorKey as t } from "./SwiperRootPrimitive.vue.js";
4
+ import { createElementBlock as n, defineComponent as r, inject as i, openBlock as a, withModifiers as o } from "vue";
5
+ //#region lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue?vue&type=script&setup=true&lang.ts
6
+ var s = /*@__PURE__*/ r({
7
+ __name: "SwiperPaginationPrimitive",
8
+ props: { options: {
9
+ type: [Object, Boolean],
10
+ default: !0
11
+ } },
12
+ setup(r) {
13
+ let s = {
14
+ el: ".swiper-pagination",
15
+ renderFraction: (e, t) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
16
+ <span data-cy="swiper-pagination-current" class="${e}"></span>
17
17
  /
18
- <span data-cy="swiper-pagination-total" class="${i}"></span>
18
+ <span data-cy="swiper-pagination-total" class="${t}"></span>
19
19
  </div>`
20
- }, e = a(c, void 0);
21
- return t.options && e?.(
22
- u({
23
- ...n,
24
- ...typeof t.options == "boolean" ? {} : t.options
25
- })
26
- ), (o, i) => (p(), s("div", {
27
- class: "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center",
28
- onClick: i[0] || (i[0] = d(() => {
29
- }, ["stop"]))
30
- }));
31
- }
20
+ }, c = i(t, void 0);
21
+ return r.options && c?.(e({
22
+ ...s,
23
+ ...typeof r.options == "boolean" ? {} : r.options
24
+ })), (e, t) => (a(), n("div", {
25
+ class: "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center",
26
+ onClick: t[0] ||= o(() => {}, ["stop"])
27
+ }));
28
+ }
32
29
  });
33
- export {
34
- x as default
35
- };
30
+ //#endregion
31
+ export { s as default };
@@ -1,4 +1,5 @@
1
- import f from "./SwiperPrimitive.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./SwiperPrimitive.vue.js";
2
+ //#region lib/components/carousel/Primitive/SwiperPrimitive.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,21 +1,17 @@
1
- import { defineComponent as s, openBlock as n, createElementBlock as c, renderSlot as l } from "vue";
2
- const p = ["data-cy"], m = /* @__PURE__ */ s({
3
- __name: "SwiperPrimitive",
4
- props: {
5
- dataCy: {}
6
- },
7
- emits: ["click"],
8
- setup(t, { emit: i }) {
9
- const o = i;
10
- return (r, e) => (n(), c("div", {
11
- "data-cy": t.dataCy,
12
- class: "swiper-wrapper",
13
- onClick: e[0] || (e[0] = (a) => o("click", a))
14
- }, [
15
- l(r.$slots, "default")
16
- ], 8, p));
17
- }
1
+ import { createElementBlock as e, defineComponent as t, openBlock as n, renderSlot as r } from "vue";
2
+ //#region lib/components/carousel/Primitive/SwiperPrimitive.vue?vue&type=script&setup=true&lang.ts
3
+ var i = ["data-cy"], a = /*@__PURE__*/ t({
4
+ __name: "SwiperPrimitive",
5
+ props: { dataCy: {} },
6
+ emits: ["click"],
7
+ setup(t, { emit: a }) {
8
+ let o = a;
9
+ return (a, s) => (n(), e("div", {
10
+ "data-cy": t.dataCy,
11
+ class: "swiper-wrapper",
12
+ onClick: s[0] ||= (e) => o("click", e)
13
+ }, [r(a.$slots, "default")], 8, i));
14
+ }
18
15
  });
19
- export {
20
- m as default
21
- };
16
+ //#endregion
17
+ export { a as default };
@@ -1,11 +1,6 @@
1
- import o from "./SwiperRootPrimitive.vue.js";
2
- import { addModuleDescriptorKey as d, setLazyImagesLoaderKey as f } from "./SwiperRootPrimitive.vue.js";
3
- import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';/* empty css */
4
- /* empty css */
5
1
  import e from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e22604af"]]);
7
- export {
8
- d as addModuleDescriptorKey,
9
- m as default,
10
- f as setLazyImagesLoaderKey
11
- };
2
+ import t, { addModuleDescriptorKey as n, setLazyImagesLoaderKey as r } from "./SwiperRootPrimitive.vue.js";
3
+ //#region lib/components/carousel/Primitive/SwiperRootPrimitive.vue
4
+ var i = /*#__PURE__*/ e(t, [["__scopeId", "data-v-e22604af"]]);
5
+ //#endregion
6
+ export { n as addModuleDescriptorKey, i as default, r as setLazyImagesLoaderKey };
@@ -1,113 +1,83 @@
1
- import { defineComponent as A, shallowRef as y, useTemplateRef as N, onMounted as g, provide as I, openBlock as w, createElementBlock as P, createElementVNode as q, normalizeClass as x, renderSlot as k, createCommentVNode as B } from "vue";
2
- import { createSwiper as D } from "../../../lazyModules/Swiper/factory.js";
3
- import { AutoplayModule as K } from "../../../lazyModules/Swiper/Autoplay/factory.js";
4
- import { KeyboardModule as R } from "../../../lazyModules/Swiper/Keyboard/factory.js";
5
- import { ZoomModule as U } from "../../../lazyModules/Swiper/Zoom/factory.js";
6
- const $ = { class: "uikit-relative" }, F = {
7
- key: 0,
8
- class: "uikit-absolute uikit-inset-0"
9
- }, Z = /* @__PURE__ */ Symbol(), j = /* @__PURE__ */ Symbol(), Y = /* @__PURE__ */ A({
10
- __name: "SwiperRootPrimitive",
11
- props: {
12
- rootClasses: {},
13
- swiperOptions: {}
14
- },
15
- emits: ["moved", "click", "init"],
16
- setup(a, { expose: b, emit: h }) {
17
- const c = h, i = y(null), u = N("root"), n = y(!1), S = !!a.swiperOptions?.keyboard, T = !!a.swiperOptions?.autoplay, m = [];
18
- let p = !1;
19
- const E = (e) => {
20
- "requestIdleCallback" in window ? requestIdleCallback(e) : setTimeout(e, 200);
21
- }, v = (e, t = "img") => Array.from(e?.querySelectorAll(t) ?? []), d = (e) => {
22
- e.src || (e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy"));
23
- }, f = (e, t) => {
24
- const o = e.params.lazyPreloadPrevNext ?? 0, r = v(e.slides[t]), l = [];
25
- for (let s = t - o; s <= t + o; s++)
26
- s !== t && (!e.params.loop && (s < 0 || s >= e.slides.length) || l.push(
27
- ...v(e.slides[s], "img[data-src]")
28
- ));
29
- return { visibleImages: r, preloadImages: l };
30
- }, C = async (e) => {
31
- const t = e.complete && e.src ? Promise.resolve() : new Promise((o) => {
32
- e.addEventListener("load", () => o(), { once: !0 }), e.addEventListener("error", () => o(), {
33
- once: !0
34
- });
35
- });
36
- d(e), await t, await e.decode?.().catch(() => {
37
- });
38
- }, O = () => {
39
- n.value = !0, c("init", i.value);
40
- }, z = async (e) => {
41
- i.value = await D(
42
- e,
43
- {
44
- on: {
45
- init: async (t) => {
46
- const { visibleImages: o, preloadImages: r } = f(
47
- t,
48
- t.activeIndex
49
- );
50
- let l;
51
- const s = new Promise(
52
- (V) => l = setTimeout(V, 6e3)
53
- ), M = Promise.all(
54
- o.map(C)
55
- ).finally(() => {
56
- clearTimeout(l);
57
- });
58
- await Promise.race([M, s]), E(() => {
59
- r.forEach(d);
60
- }), O();
61
- },
62
- slideChange: (t) => {
63
- c("moved", { activeIndex: t.activeIndex });
64
- const { visibleImages: o, preloadImages: r } = f(
65
- t,
66
- t.activeIndex
67
- );
68
- [...o, ...r].forEach(
69
- d
70
- );
71
- }
72
- },
73
- ...a.swiperOptions
74
- },
75
- [
76
- U(a.swiperOptions?.zoom),
77
- S ? R(a.swiperOptions?.keyboard) : void 0,
78
- T ? K(a.swiperOptions.autoplay) : void 0,
79
- ...m
80
- ].filter(Boolean)
81
- );
82
- };
83
- g(() => {
84
- u.value && setTimeout(() => z(u.value));
85
- });
86
- const L = (e) => {
87
- !i.value || i.value.params.slidesPerView === e || (i.value.params.slidesPerView = e, i.value.update());
88
- };
89
- return I(j, (e) => {
90
- e && m.push(e);
91
- }), I(Z, (e) => {
92
- e !== p && (p = e);
93
- }), b({
94
- swiper: i,
95
- updateSlidesPerView: L
96
- }), (e, t) => (w(), P("div", $, [
97
- q("div", {
98
- ref: "root",
99
- class: x(["swiper uikit-carousel", [{ "is-initialized": n.value }, a.rootClasses]])
100
- }, [
101
- k(e.$slots, "default", {}, void 0, !0)
102
- ], 2),
103
- n.value ? B("", !0) : (w(), P("div", F, [
104
- k(e.$slots, "placeholder", {}, void 0, !0)
105
- ]))
106
- ]));
107
- }
1
+ import { createSwiper as e } from "../../../lazyModules/Swiper/factory.js";
2
+ import { AutoplayModule as t } from "../../../lazyModules/Swiper/Autoplay/factory.js";
3
+ import { KeyboardModule as n } from "../../../lazyModules/Swiper/Keyboard/factory.js";
4
+ import { ZoomModule as r } from "../../../lazyModules/Swiper/Zoom/factory.js";
5
+ import { createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, onMounted as l, openBlock as u, provide as d, renderSlot as f, shallowRef as p, useTemplateRef as m } from "vue";
6
+ import '../../../assets/SwiperRootPrimitive2.css';import '../../../assets/SwiperRootPrimitive.css';//#region lib/components/carousel/Primitive/SwiperRootPrimitive.vue?vue&type=script&setup=true&lang.ts
7
+ var h = { class: "uikit-relative" }, g = {
8
+ key: 0,
9
+ class: "uikit-absolute uikit-inset-0"
10
+ }, _ = Symbol(), v = Symbol(), y = /*@__PURE__*/ s({
11
+ __name: "SwiperRootPrimitive",
12
+ props: {
13
+ rootClasses: {},
14
+ swiperOptions: {}
15
+ },
16
+ emits: [
17
+ "moved",
18
+ "click",
19
+ "init"
20
+ ],
21
+ setup(s, { expose: y, emit: b }) {
22
+ let x = b, S = p(null), C = m("root"), w = p(!1), T = !!s.swiperOptions?.keyboard, E = !!s.swiperOptions?.autoplay, D = [], O = !1, k = (e) => {
23
+ "requestIdleCallback" in window ? requestIdleCallback(e) : setTimeout(e, 200);
24
+ }, A = (e, t = "img") => Array.from(e?.querySelectorAll(t) ?? []), j = (e) => {
25
+ e.src || (e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy"));
26
+ }, M = (e, t) => {
27
+ let n = e.params.lazyPreloadPrevNext ?? 0, r = A(e.slides[t]), i = [];
28
+ for (let r = t - n; r <= t + n; r++) r !== t && (!e.params.loop && (r < 0 || r >= e.slides.length) || i.push(...A(e.slides[r], "img[data-src]")));
29
+ return {
30
+ visibleImages: r,
31
+ preloadImages: i
32
+ };
33
+ }, N = async (e) => {
34
+ let t = e.complete && e.src ? Promise.resolve() : new Promise((t) => {
35
+ e.addEventListener("load", () => t(), { once: !0 }), e.addEventListener("error", () => t(), { once: !0 });
36
+ });
37
+ j(e), await t, await e.decode?.().catch(() => void 0);
38
+ }, P = () => {
39
+ w.value = !0, x("init", S.value);
40
+ }, F = async (i) => {
41
+ S.value = await e(i, {
42
+ on: {
43
+ init: async (e) => {
44
+ let { visibleImages: t, preloadImages: n } = M(e, e.activeIndex), r, i = new Promise((e) => r = setTimeout(e, 6e3)), a = Promise.all(t.map(N)).finally(() => {
45
+ clearTimeout(r);
46
+ });
47
+ await Promise.race([a, i]), k(() => {
48
+ n.forEach(j);
49
+ }), P();
50
+ },
51
+ slideChange: (e) => {
52
+ x("moved", { activeIndex: e.activeIndex });
53
+ let { visibleImages: t, preloadImages: n } = M(e, e.activeIndex);
54
+ [...t, ...n].forEach(j);
55
+ }
56
+ },
57
+ ...s.swiperOptions
58
+ }, [
59
+ r(s.swiperOptions?.zoom),
60
+ T ? n(s.swiperOptions?.keyboard) : void 0,
61
+ E ? t(s.swiperOptions.autoplay) : void 0,
62
+ ...D
63
+ ].filter(Boolean));
64
+ };
65
+ return l(() => {
66
+ C.value && setTimeout(() => F(C.value));
67
+ }), d(v, (e) => {
68
+ e && D.push(e);
69
+ }), d(_, (e) => {
70
+ e !== O && (O = e);
71
+ }), y({
72
+ swiper: S,
73
+ updateSlidesPerView: (e) => {
74
+ S.value && S.value.params.slidesPerView !== e && (S.value.params.slidesPerView = e, S.value.update());
75
+ }
76
+ }), (e, t) => (u(), a("div", h, [o("div", {
77
+ ref: "root",
78
+ class: c(["swiper uikit-carousel", [{ "is-initialized": w.value }, s.rootClasses]])
79
+ }, [f(e.$slots, "default", {}, void 0, !0)], 2), w.value ? i("", !0) : (u(), a("div", g, [f(e.$slots, "placeholder", {}, void 0, !0)]))]));
80
+ }
108
81
  });
109
- export {
110
- j as addModuleDescriptorKey,
111
- Y as default,
112
- Z as setLazyImagesLoaderKey
113
- };
82
+ //#endregion
83
+ export { v as addModuleDescriptorKey, y as default, _ as setLazyImagesLoaderKey };
@@ -1,5 +1,5 @@
1
- import o from "./SwiperSlideImagePrimitive.vue.js";
2
- import '../../../assets/SwiperSlideImagePrimitive.css';/* empty css */
3
- export {
4
- o as default
5
- };
1
+ import e from "./SwiperSlideImagePrimitive.vue.js";
2
+ //#region lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };