@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.
- package/dist/UIKit/AccessibleSelect.js +5 -5
- package/dist/UIKit/AccessibleSelect.vue.js +217 -205
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +19 -21
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +18 -20
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +21 -23
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +19 -21
- package/dist/UIKit/Accordion/BaseAccordion.js +5 -4
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +38 -36
- package/dist/UIKit/Accordion/BaseAccordionItem.js +5 -5
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +64 -81
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +5 -5
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +232 -226
- package/dist/UIKit/BaseAlert.js +5 -5
- package/dist/UIKit/BaseAlert.vue.js +14 -18
- package/dist/UIKit/BaseAutocomplete.js +5 -5
- package/dist/UIKit/BaseAutocomplete.vue.js +197 -194
- package/dist/UIKit/BaseBadge.js +5 -5
- package/dist/UIKit/BaseBadge.vue.js +17 -17
- package/dist/UIKit/BaseBreadcrumb.js +5 -4
- package/dist/UIKit/BaseBreadcrumb.vue.js +39 -56
- package/dist/UIKit/BaseButton.js +5 -4
- package/dist/UIKit/BaseButton.vue.js +93 -87
- package/dist/UIKit/BaseComplexToggle.js +5 -6
- package/dist/UIKit/BaseComplexToggle.vue.js +87 -105
- package/dist/UIKit/BaseDropDown.js +5 -5
- package/dist/UIKit/BaseDropDown.vue.js +171 -152
- package/dist/UIKit/BaseFloatingLabel.js +6 -7
- package/dist/UIKit/BaseFloatingLabel.vue.js +43 -39
- package/dist/UIKit/BaseInput.js +6 -7
- package/dist/UIKit/BaseInput.vue.js +191 -210
- package/dist/UIKit/BaseModal.js +5 -5
- package/dist/UIKit/BaseModal.vue.js +160 -169
- package/dist/UIKit/BasePagination.js +5 -4
- package/dist/UIKit/BasePagination.vue.js +192 -229
- package/dist/UIKit/BaseSelect/SelectItem.js +5 -4
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +34 -41
- package/dist/UIKit/BaseSlider.js +6 -7
- package/dist/UIKit/BaseSlider.vue.js +153 -203
- package/dist/UIKit/BaseSnackbar.js +5 -5
- package/dist/UIKit/BaseSnackbar.vue.js +144 -146
- package/dist/UIKit/BaseTextarea.js +5 -6
- package/dist/UIKit/BaseTextarea.vue.js +118 -126
- package/dist/UIKit/BaseToggle.js +5 -4
- package/dist/UIKit/BaseToggle.vue.js +37 -38
- package/dist/UIKit/BaseTooltip.js +6 -7
- package/dist/UIKit/BaseTooltip.vue.js +31 -40
- package/dist/UIKit/BaseUploadFile.js +5 -4
- package/dist/UIKit/BaseUploadFile.vue.js +63 -70
- package/dist/UIKit/Card/BaseCard.js +5 -5
- package/dist/UIKit/Card/BaseCard.vue.js +23 -36
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -11
- package/dist/UIKit/Card/CardImagePrimitive.js +5 -4
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -15
- package/dist/UIKit/Card/CardRootPrimitive.js +5 -5
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +22 -26
- package/dist/UIKit/Card/type.js +4 -4
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -5
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -81
- package/dist/UIKit/Checkbox/CheckboxGroup.js +5 -4
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +137 -116
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +71 -77
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +32 -34
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +32 -34
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +5 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +15 -15
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +5 -4
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +29 -31
- package/dist/UIKit/Radio/RadioButton.js +5 -4
- package/dist/UIKit/Radio/RadioButton.vue.js +51 -59
- package/dist/UIKit/Radio/RadioGroup.js +5 -4
- package/dist/UIKit/Radio/RadioGroup.vue.js +67 -63
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +5 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +38 -47
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -5
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +42 -44
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +5 -4
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +28 -30
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +6 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -19
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +5 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -30
- package/dist/UIKit/Slider/SimpleSlider.js +6 -7
- package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -81
- package/dist/UIKit/StaticSpinner.js +6 -7
- package/dist/UIKit/StaticSpinner.vue.js +24 -26
- package/dist/UIKit/Tab/BaseTab.js +5 -4
- package/dist/UIKit/Tab/BaseTab.vue.js +14 -14
- package/dist/UIKit/Tab/BaseTabList.js +5 -4
- package/dist/UIKit/Tab/BaseTabList.vue.js +45 -44
- package/dist/UIKit/Tab/BaseTabPanel.js +5 -4
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -24
- package/dist/UIKit/Tab/BaseTabView.js +5 -4
- package/dist/UIKit/Tab/BaseTabView.vue.js +107 -105
- package/dist/UIKit/Tab/v2/BaseTabs.js +5 -5
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +34 -38
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +21 -23
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +5 -5
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +24 -33
- package/dist/UIKit/Tab/v2/BaseTabsList.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +20 -22
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +21 -30
- package/dist/UIKit/types.js +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
- package/dist/assets/AccessibleSelect.css +1 -1
- package/dist/assets/BaseAccordionItem.css +1 -1
- package/dist/assets/BaseAutocomplete.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseComplexToggle2.css +1 -1
- package/dist/assets/BaseDropDown.css +1 -1
- package/dist/assets/BaseFloatingLabel2.css +1 -1
- package/dist/assets/BaseInput2.css +1 -1
- package/dist/assets/BaseShimmerLoader.css +1 -1
- package/dist/assets/BaseSlider2.css +1 -1
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/BaseTabs.css +1 -1
- package/dist/assets/BaseTextarea2.css +1 -1
- package/dist/assets/BaseTooltip2.css +1 -1
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/ClearableAutocomplete.css +1 -1
- package/dist/assets/RadioButtonItem.css +1 -1
- package/dist/assets/StaticSpinner.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/baseAlert.css +1 -1
- package/dist/assets/baseCard.css +1 -1
- package/dist/assets/baseComplexToggle.css +1 -1
- package/dist/assets/baseFloatingLabel.css +1 -1
- package/dist/assets/baseInput.css +1 -1
- package/dist/assets/baseModal.css +1 -1
- package/dist/assets/baseSlider.css +1 -1
- package/dist/assets/baseSpinner.css +1 -1
- package/dist/assets/baseTextarea.css +1 -1
- package/dist/assets/baseTooltip.css +1 -1
- package/dist/assets/swiper-free-mode.css +1 -1
- package/dist/assets/swiper-navigation.css +1 -1
- package/dist/assets/swiper-pagination.css +1 -1
- package/dist/assets/swiper-swiper.css +1 -1
- package/dist/assets/swiper-thumbs.css +1 -0
- package/dist/assets/swiper-zoom.css +1 -1
- package/dist/assets/swiperPaginationBullet.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/chart/DoughnutChart.js +5 -4
- package/dist/chart/DoughnutChart.vue.js +25 -25
- package/dist/chart/LineChart.js +5 -4
- package/dist/chart/LineChart.vue.js +27 -29
- package/dist/components/IntersectionObserver/IntersectionObservable.js +5 -4
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -23
- package/dist/components/IntersectionObserver/IntersectionObserver.js +5 -4
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +55 -49
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +5 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -38
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +5 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +27 -30
- package/dist/components/IntersectionObserver/v2/types.js +4 -6
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -38
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +28 -32
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -20
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -10
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +82 -112
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +5 -5
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -39
- package/dist/components/carousel/SwiperCarousel.js +6 -7
- package/dist/components/carousel/SwiperCarousel.vue.js +195 -229
- package/dist/components/carousel/SwiperSlide.js +9 -13
- package/dist/composables/mock.js +50 -48
- package/dist/composables/useFloatingLabel.js +32 -32
- package/dist/composables/useValidator.js +5 -7
- package/dist/index.js +67 -150
- package/dist/lazyModules/ChartJs/Chart.js +2 -4
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +5 -6
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +5 -6
- package/dist/lazyModules/ChartJs/LineChart/core.js +5 -6
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/Title.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +4 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -8
- package/dist/lazyModules/Swiper/Autoplay/index.js +3 -6
- package/dist/lazyModules/Swiper/Controller/factory.js +6 -6
- package/dist/lazyModules/Swiper/Controller/index.js +3 -6
- package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -8
- package/dist/lazyModules/Swiper/FreeMode/index.js +3 -6
- package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -8
- package/dist/lazyModules/Swiper/Keyboard/index.js +3 -6
- package/dist/lazyModules/Swiper/Navigation/factory.js +6 -8
- package/dist/lazyModules/Swiper/Navigation/index.js +3 -6
- package/dist/lazyModules/Swiper/Pagination/factory.js +6 -6
- package/dist/lazyModules/Swiper/Pagination/index.js +3 -6
- package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -6
- package/dist/lazyModules/Swiper/Thumbs/index.js +3 -6
- package/dist/lazyModules/Swiper/Zoom/factory.js +6 -8
- package/dist/lazyModules/Swiper/Zoom/index.js +3 -6
- package/dist/lazyModules/Swiper/factory.js +9 -12
- package/dist/lazyModules/Swiper/index.js +2 -4
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
- package/dist/lazyModules/Swiper/types.js +0 -1
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -11
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +2 -5
- package/dist/lazyModules/VueChartJs/Line/factory.js +8 -13
- package/dist/lazyModules/VueChartJs/Line/index.js +2 -5
- package/dist/types/index.js +0 -1
- package/dist/types.js +0 -1
- package/dist/utils.js +4 -5
- package/package.json +8 -8
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { l as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { h as default };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { l as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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 {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<span data-cy="swiper-pagination-current" class="${
|
|
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="${
|
|
18
|
+
<span data-cy="swiper-pagination-total" class="${t}"></span>
|
|
19
19
|
</div>`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
110
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|