@wikicasa-dev/components 2.10.0 → 3.0.0-alpha.2
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 +1 -2
- package/dist/UIKit/AccessibleSelect.vue.js +75 -76
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +5 -3
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +6 -3
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +6 -3
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +9 -2
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +12 -9
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +6 -3
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +6 -0
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -2
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +18 -6
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -2
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +34 -28
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +1 -2
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +84 -97
- package/dist/UIKit/BaseAlert.d.ts +5 -3
- package/dist/UIKit/BaseAlert.js +1 -2
- package/dist/UIKit/BaseAlert.vue.js +1 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -2
- package/dist/UIKit/BaseAutocomplete.vue.js +65 -72
- package/dist/UIKit/BaseBadge.d.ts +5 -3
- package/dist/UIKit/BaseBadge.js +1 -2
- package/dist/UIKit/BaseBadge.vue.js +1 -2
- package/dist/UIKit/BaseBreadcrumb.d.ts +9 -7
- package/dist/UIKit/BaseBreadcrumb.js +1 -2
- package/dist/UIKit/BaseBreadcrumb.vue.js +1 -2
- package/dist/UIKit/BaseButton.js +1 -2
- package/dist/UIKit/BaseButton.vue.js +26 -27
- package/dist/UIKit/BaseComplexToggle.js +4 -5
- package/dist/UIKit/BaseComplexToggle.vue.js +2 -13
- package/dist/UIKit/BaseDropDown.d.ts +27 -20
- package/dist/UIKit/BaseDropDown.js +1 -2
- package/dist/UIKit/BaseDropDown.vue.js +48 -49
- package/dist/UIKit/BaseFloatingLabel.js +4 -5
- package/dist/UIKit/BaseFloatingLabel.vue.js +1 -2
- package/dist/UIKit/BaseInput.js +4 -5
- package/dist/UIKit/BaseInput.vue.js +65 -66
- package/dist/UIKit/BaseModal.d.ts +22 -15
- package/dist/UIKit/BaseModal.js +1 -2
- package/dist/UIKit/BaseModal.vue.js +50 -56
- package/dist/UIKit/BasePagination.js +1 -2
- package/dist/UIKit/BasePagination.vue.js +9 -3
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +10 -5
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -2
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +1 -2
- package/dist/UIKit/BaseSlider.js +4 -5
- package/dist/UIKit/BaseSlider.vue.js +29 -32
- package/dist/UIKit/BaseSnackbar.js +1 -2
- package/dist/UIKit/BaseSnackbar.vue.js +19 -24
- package/dist/UIKit/BaseTextarea.js +4 -5
- package/dist/UIKit/BaseTextarea.vue.js +51 -52
- package/dist/UIKit/BaseToggle.d.ts +7 -5
- package/dist/UIKit/BaseToggle.js +1 -2
- package/dist/UIKit/BaseToggle.vue.js +1 -2
- package/dist/UIKit/BaseTooltip.d.ts +8 -6
- package/dist/UIKit/BaseTooltip.js +4 -5
- package/dist/UIKit/BaseTooltip.vue.js +1 -2
- package/dist/UIKit/BaseUploadFile.d.ts +7 -5
- package/dist/UIKit/BaseUploadFile.js +1 -2
- package/dist/UIKit/BaseUploadFile.vue.js +26 -27
- package/dist/UIKit/Card/BaseCard.js +1 -2
- package/dist/UIKit/Card/BaseCard.vue.js +2 -2
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +5 -3
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +6 -7
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +5 -3
- package/dist/UIKit/Card/CardImagePrimitive.js +1 -2
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +7 -8
- package/dist/UIKit/Card/CardRootPrimitive.js +1 -2
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +11 -11
- package/dist/UIKit/Card/type.js +1 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.js +1 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +6 -7
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +39 -46
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +1 -2
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +21 -32
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +1 -1
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +1 -2
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +7 -3
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +1 -2
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +8 -3
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +1 -2
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +6 -3
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +72 -7
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +1 -2
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +6 -3
- package/dist/UIKit/Radio/RadioButton.js +1 -2
- package/dist/UIKit/Radio/RadioButton.vue.js +1 -2
- package/dist/UIKit/Radio/RadioGroup.js +1 -2
- package/dist/UIKit/Radio/RadioGroup.vue.js +23 -24
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +1 -2
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +17 -14
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +1 -2
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +6 -3
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +9 -3
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +1 -2
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +6 -3
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +4 -5
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +12 -13
- package/dist/UIKit/Slider/SimpleSlider.js +4 -5
- package/dist/UIKit/Slider/SimpleSlider.vue.js +1 -2
- package/dist/UIKit/StaticSpinner.js +1 -2
- package/dist/UIKit/StaticSpinner.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTab.d.ts +5 -3
- package/dist/UIKit/Tab/BaseTab.js +1 -2
- package/dist/UIKit/Tab/BaseTab.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTabList.js +1 -2
- package/dist/UIKit/Tab/BaseTabList.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +5 -3
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -2
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTabView.js +1 -2
- package/dist/UIKit/Tab/BaseTabView.vue.js +36 -37
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +6 -0
- package/dist/UIKit/Tab/v2/BaseTabs.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +13 -6
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +6 -3
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +6 -3
- package/dist/UIKit/Tab/v2/BaseTabsList.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +6 -3
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +6 -3
- package/dist/UIKit/frameUtils.js +1 -2
- package/dist/UIKit/useScrollLock.js +2 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/chart/DoughnutChart.js +1 -2
- package/dist/chart/DoughnutChart.vue.js +14 -15
- package/dist/chart/LineChart.js +1 -2
- package/dist/chart/LineChart.vue.js +16 -17
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +7 -5
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -2
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +1 -2
- package/dist/components/IntersectionObserver/IntersectionObserver.d.ts +31 -29
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -2
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +2 -7
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +1 -2
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +16 -17
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +14 -9
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +1 -2
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +12 -13
- package/dist/components/IntersectionObserver/v2/types.js +1 -2
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +4 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +13 -14
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +12 -13
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +5 -3
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +1 -2
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -6
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +39 -40
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +13 -14
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.vue.js +27 -28
- package/dist/components/carousel/Primitive/deferredImages.js +1 -2
- package/dist/components/carousel/SwiperCarousel.d.ts +14 -7
- package/dist/components/carousel/SwiperCarousel.js +4 -5
- package/dist/components/carousel/SwiperCarousel.vue.js +82 -83
- package/dist/components/carousel/SwiperSlide.d.ts +5 -3
- package/dist/components/carousel/SwiperSlide.js +6 -7
- package/dist/composables/mock.js +1 -2
- package/dist/composables/useFloatingLabel.js +2 -7
- package/dist/composables/useValidator.js +1 -2
- package/dist/css/BaseAccordionItem.css +1 -0
- package/dist/{assets/BaseInput2.css → css/BaseInput.css} +1 -1
- package/dist/css/BaseModal.css +1 -0
- package/dist/css/BaseSlider.css +1 -0
- package/dist/css/BaseSnackbar.css +1 -0
- package/dist/{assets → css}/ClearableAutocomplete.css +1 -1
- package/dist/css/SwiperCarousel.css +1 -0
- package/dist/css/SwiperNavigationPrimitive.css +1 -0
- package/dist/css/SwiperRootPrimitive.css +1 -0
- package/dist/docs/AccessibleSelect.md +3 -1
- package/dist/docs/AccordionContentPrimitive.md +1 -1
- package/dist/docs/AccordionHeaderPrimitive.md +1 -1
- package/dist/docs/AccordionItemPrimitive.md +3 -3
- package/dist/docs/AccordionTriggerPrimitive.md +1 -1
- package/dist/docs/BaseAccordion.md +3 -3
- package/dist/docs/BaseAccordionItem.md +3 -1
- package/dist/docs/BaseAlert.md +3 -1
- package/dist/docs/BaseAutocomplete.md +3 -1
- package/dist/docs/BaseBadge.md +3 -1
- package/dist/docs/BaseBreadcrumb.md +1 -1
- package/dist/docs/BaseButton.md +1 -1
- package/dist/docs/BaseCard.md +3 -1
- package/dist/docs/BaseComplexToggle.md +3 -1
- package/dist/docs/BaseDropDown.md +3 -1
- package/dist/docs/BaseFloatingLabel.md +3 -1
- package/dist/docs/BaseInput.md +3 -1
- package/dist/docs/BaseModal.md +3 -1
- package/dist/docs/BasePagination.md +1 -1
- package/dist/docs/BaseShimmerLoader.md +3 -1
- package/dist/docs/BaseSlider.md +3 -1
- package/dist/docs/BaseSnackbar.md +4 -2
- package/dist/docs/BaseTab.md +1 -1
- package/dist/docs/BaseTabView.md +1 -1
- package/dist/docs/BaseTabs.md +4 -2
- package/dist/docs/BaseTabsContent.md +1 -1
- package/dist/docs/BaseTabsIndicator.md +3 -1
- package/dist/docs/BaseTabsList.md +1 -1
- package/dist/docs/BaseTabsTrigger.md +1 -1
- package/dist/docs/BaseTextarea.md +3 -1
- package/dist/docs/BaseToggle.md +1 -1
- package/dist/docs/BaseTooltip.md +3 -1
- package/dist/docs/BaseUploadFile.md +1 -1
- package/dist/docs/CardDescriptionPrimitive.md +1 -1
- package/dist/docs/CardImagePrimitive.md +1 -1
- package/dist/docs/CardRootPrimitive.md +3 -1
- package/dist/docs/CheckboxBtn.md +3 -1
- package/dist/docs/CheckboxButtonGroup.md +1 -1
- package/dist/docs/CheckboxGroup.md +1 -1
- package/dist/docs/CheckboxGroupItemPrimitive.md +6 -5
- package/dist/docs/CheckboxGroupPrimitive.md +3 -1
- package/dist/docs/ClearableAutocomplete.md +3 -1
- package/dist/docs/DoughnutChart.md +1 -1
- package/dist/docs/INDEX.md +2 -2
- package/dist/docs/IntersectionObservable.md +1 -1
- package/dist/docs/IntersectionObserver.md +1 -1
- package/dist/docs/IntersectionObserverProvider.md +1 -1
- package/dist/docs/IntersectionObserverTarget.md +1 -1
- package/dist/docs/LineChart.md +1 -1
- package/dist/docs/ProgressIndicatorPrimitive.md +1 -1
- package/dist/docs/ProgressRootPrimitive.md +2 -2
- package/dist/docs/RadioButton.md +1 -1
- package/dist/docs/RadioButtonGroup.md +1 -1
- package/dist/docs/RadioButtonItem.md +3 -1
- package/dist/docs/RadioGroup.md +1 -1
- package/dist/docs/RadioGroupItemPrimitive.md +1 -1
- package/dist/docs/SelectItem.md +1 -1
- package/dist/docs/ShimmerMultiLine.md +1 -1
- package/dist/docs/SimpleSlider.md +3 -1
- package/dist/docs/StaticSpinner.md +3 -1
- package/dist/docs/SwiperCarousel.md +3 -1
- package/dist/docs/SwiperNavigationPrimitive.md +3 -1
- package/dist/docs/SwiperPaginationPrimitive.md +3 -1
- package/dist/docs/SwiperPrimitive.md +1 -1
- package/dist/docs/SwiperRootPrimitive.md +3 -1
- package/dist/docs/SwiperSlide.md +1 -1
- package/dist/docs/SwiperSlideImagePrimitive.md +3 -1
- package/dist/docs/SwiperThumbnailPrimitive.md +1 -1
- package/dist/docs/TOKENS.md +1 -1
- package/dist/docs/agent-index.md +1 -1
- package/dist/index.js +25 -25
- package/dist/lazyModules/ChartJs/Chart.js +1 -2
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +1 -2
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +1 -2
- package/dist/lazyModules/ChartJs/LineChart/core.js +1 -2
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +1 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +2 -3
- package/dist/lazyModules/ChartJs/Plugins/Title.js +1 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +1 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.js +1 -2
- package/dist/lazyModules/Swiper/Autoplay/index.js +2 -3
- package/dist/lazyModules/Swiper/Controller/factory.js +1 -2
- package/dist/lazyModules/Swiper/Controller/index.js +2 -3
- package/dist/lazyModules/Swiper/FreeMode/factory.js +1 -2
- package/dist/lazyModules/Swiper/FreeMode/index.js +2 -3
- package/dist/lazyModules/Swiper/Keyboard/factory.js +1 -2
- package/dist/lazyModules/Swiper/Keyboard/index.js +2 -3
- package/dist/lazyModules/Swiper/Navigation/factory.js +1 -2
- package/dist/lazyModules/Swiper/Navigation/index.js +2 -3
- package/dist/lazyModules/Swiper/Pagination/factory.js +1 -2
- package/dist/lazyModules/Swiper/Pagination/index.js +2 -3
- package/dist/lazyModules/Swiper/Thumbs/factory.js +1 -2
- package/dist/lazyModules/Swiper/Thumbs/index.js +2 -3
- package/dist/lazyModules/Swiper/Zoom/factory.js +1 -2
- package/dist/lazyModules/Swiper/Zoom/index.js +2 -3
- package/dist/lazyModules/Swiper/factory.js +1 -2
- package/dist/lazyModules/Swiper/index.js +2 -3
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +1 -2
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +1 -2
- package/dist/lazyModules/VueChartJs/Line/factory.js +1 -2
- package/dist/lazyModules/VueChartJs/Line/index.js +1 -2
- package/dist/utils.js +1 -2
- package/package.json +31 -31
- package/dist/assets/BaseAccordionItem.css +0 -1
- package/dist/assets/BaseSlider2.css +0 -1
- package/dist/assets/BaseSnackbar.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/SwiperRootPrimitive.css +0 -1
- package/dist/assets/SwiperRootPrimitive2.css +0 -1
- package/dist/assets/baseComplexToggle.css +0 -1
- package/dist/assets/baseFloatingLabel.css +0 -1
- package/dist/assets/baseInput.css +0 -1
- package/dist/assets/baseModal.css +0 -1
- package/dist/assets/baseSlider.css +0 -1
- package/dist/assets/baseSpinner.css +0 -1
- package/dist/assets/baseTextarea.css +0 -1
- package/dist/assets/baseTooltip.css +0 -1
- package/dist/assets/swiper-autoplay.css +0 -1
- /package/dist/{assets → css}/AccessibleSelect.css +0 -0
- /package/dist/{assets/baseAlert.css → css/BaseAlert.css} +0 -0
- /package/dist/{assets → css}/BaseAutocomplete.css +0 -0
- /package/dist/{assets → css}/BaseBadge.css +0 -0
- /package/dist/{assets/baseCard.css → css/BaseCard.css} +0 -0
- /package/dist/{assets/BaseComplexToggle2.css → css/BaseComplexToggle.css} +0 -0
- /package/dist/{assets → css}/BaseDropDown.css +0 -0
- /package/dist/{assets/BaseFloatingLabel2.css → css/BaseFloatingLabel.css} +0 -0
- /package/dist/{assets → css}/BaseShimmerLoader.css +0 -0
- /package/dist/{assets → css}/BaseTabs.css +0 -0
- /package/dist/{assets → css}/BaseTabsIndicator.css +0 -0
- /package/dist/{assets/BaseTextarea2.css → css/BaseTextarea.css} +0 -0
- /package/dist/{assets/BaseTooltip2.css → css/BaseTooltip.css} +0 -0
- /package/dist/{assets → css}/CheckboxBtn.css +0 -0
- /package/dist/{assets → css}/RadioButtonItem.css +0 -0
- /package/dist/{assets → css}/SimpleSlider.css +0 -0
- /package/dist/{assets → css}/StaticSpinner.css +0 -0
- /package/dist/{assets/swiperPaginationBullet.css → css/SwiperPaginationPrimitive.css} +0 -0
- /package/dist/{assets → css}/SwiperSlideImagePrimitive.css +0 -0
- /package/dist/{assets → css}/swiper-free-mode.css +0 -0
- /package/dist/{assets → css}/swiper-navigation.css +0 -0
- /package/dist/{assets → css}/swiper-pagination.css +0 -0
- /package/dist/{assets → css}/swiper-swiper.css +0 -0
- /package/dist/{assets → css}/swiper-zoom.css +0 -0
- /package/dist/{assets → css}/tailwind.css +0 -0
- /package/dist/{assets → css}/tokens.css +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
var g = ["data-cy"], _ = /*@__PURE__*/
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, inject as r, normalizeClass as i, onBeforeUnmount as a, openBlock as o, renderSlot as s, shallowRef as c, useTemplateRef as l } from "vue";
|
|
2
|
+
import { addModuleDescriptorKey as u } from "./SwiperRootPrimitive.vue.js";
|
|
3
|
+
import { createSwiper as d } from "../../../lazyModules/Swiper/factory.js";
|
|
4
|
+
import { ThumbsModule as f } from "../../../lazyModules/Swiper/Thumbs/factory.js";
|
|
5
|
+
import { FreemodeModule as p } from "../../../lazyModules/Swiper/FreeMode/factory.js";
|
|
6
|
+
import { collectSlideImages as m, startDeferredImageLoad as h } from "./deferredImages.js";
|
|
7
|
+
// lib/components/carousel/Primitive/SwiperThumbnailPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var g = ["data-cy"], _ = /*@__PURE__*/ n({
|
|
9
9
|
__name: "SwiperThumbnailPrimitive",
|
|
10
10
|
props: {
|
|
11
11
|
dataCy: {},
|
|
@@ -15,17 +15,17 @@ var g = ["data-cy"], _ = /*@__PURE__*/ c({
|
|
|
15
15
|
preloadCount: { default: 1 }
|
|
16
16
|
},
|
|
17
17
|
emits: ["init"],
|
|
18
|
-
setup(
|
|
19
|
-
let y = v, b =
|
|
20
|
-
let { slides: t, activeIndex:
|
|
21
|
-
for (let e =
|
|
18
|
+
setup(n, { expose: _, emit: v }) {
|
|
19
|
+
let y = v, b = c(null), x = l("root"), S = /* @__PURE__ */ new WeakSet(), C = (e) => {
|
|
20
|
+
let { slides: t, activeIndex: r, params: i } = e, a = Math.ceil(typeof i.slidesPerView == "number" ? i.slidesPerView : e.slidesPerViewDynamic()), o = i.centeredSlides ? Math.floor(a / 2) : 0, s = Math.max(0, r - o - n.preloadCount), c = Math.min(t.length - 1, r + a - 1 - o + n.preloadCount);
|
|
21
|
+
for (let e = s; e <= c; e++) {
|
|
22
22
|
let n = t[e];
|
|
23
|
-
n && !S.has(n) && (S.add(n),
|
|
23
|
+
n && !S.has(n) && (S.add(n), m(n).forEach(h));
|
|
24
24
|
}
|
|
25
25
|
}, w = (e) => (t) => {
|
|
26
26
|
C(t), e?.(t);
|
|
27
|
-
}, T = {}, E =
|
|
28
|
-
|
|
27
|
+
}, T = {}, E = f(T);
|
|
28
|
+
r(u, void 0)?.({
|
|
29
29
|
...E,
|
|
30
30
|
loader: async () => {
|
|
31
31
|
let [e] = await Promise.all([E.loader(), D().catch(() => void 0)]);
|
|
@@ -33,25 +33,24 @@ var g = ["data-cy"], _ = /*@__PURE__*/ c({
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
async function D() {
|
|
36
|
-
x.value && (b.value = await
|
|
37
|
-
...
|
|
36
|
+
x.value && (b.value = await d(x.value, {
|
|
37
|
+
...n.swiperOptions,
|
|
38
38
|
on: {
|
|
39
|
-
...
|
|
40
|
-
init: w(
|
|
41
|
-
slideChange: w(
|
|
42
|
-
slidesUpdated: w(
|
|
39
|
+
...n.swiperOptions?.on,
|
|
40
|
+
init: w(n.swiperOptions?.on?.init),
|
|
41
|
+
slideChange: w(n.swiperOptions?.on?.slideChange),
|
|
42
|
+
slidesUpdated: w(n.swiperOptions?.on?.slidesUpdated)
|
|
43
43
|
}
|
|
44
|
-
},
|
|
44
|
+
}, n.swiperOptions?.freeMode ? [p(n.swiperOptions.freeMode)] : []), T.swiper = b.value, y("init", b.value));
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return a(() => {
|
|
47
47
|
let e = b.value;
|
|
48
48
|
b.value = null, e?.destroy(!0, !1);
|
|
49
|
-
}), _({ swiper: b }), (
|
|
49
|
+
}), _({ swiper: b }), (r, a) => (o(), e("div", {
|
|
50
50
|
ref: "root",
|
|
51
|
-
"data-cy":
|
|
52
|
-
class:
|
|
53
|
-
}, [
|
|
51
|
+
"data-cy": n.dataCy,
|
|
52
|
+
class: i(["swiper", n.rootClasses])
|
|
53
|
+
}, [t("div", { class: i(["swiper-wrapper", n.wrapperClasses]) }, [s(r.$slots, "default")], 2)], 10, g));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
//#endregion
|
|
57
56
|
export { _ as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// lib/components/carousel/Primitive/deferredImages.ts
|
|
2
2
|
var e = (e, t = "img") => Array.from(e?.querySelectorAll(t) ?? []), t = (e) => {
|
|
3
3
|
e.src || (e.src = e.dataset.src || "", e.srcset = e.dataset.srcset || "", e.dataset.src = "", e.dataset.srcset = "", e.removeAttribute("lazy"));
|
|
4
4
|
}, n = async (e) => {
|
|
@@ -7,5 +7,4 @@ var e = (e, t = "img") => Array.from(e?.querySelectorAll(t) ?? []), t = (e) => {
|
|
|
7
7
|
});
|
|
8
8
|
t(e), await n, await e.decode?.().catch(() => void 0);
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { e as collectSlideImages, t as startDeferredImageLoad, n as waitForImageLoad };
|
|
@@ -13,14 +13,21 @@ type SwiperCarouselProps = {
|
|
|
13
13
|
}>;
|
|
14
14
|
shiftFirstImage?: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} & {
|
|
20
|
-
|
|
21
|
-
} & {
|
|
22
|
-
|
|
16
|
+
declare const __VLS_template: () => {
|
|
17
|
+
__VLS_Slots: {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
} & {
|
|
20
|
+
last_slide?: (props: {}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
placeholder?: (props: {}) => any;
|
|
23
|
+
};
|
|
24
|
+
__VLS_TemplateRefs: {
|
|
25
|
+
swiperRef: __VLS_Elements["div"];
|
|
26
|
+
} & {
|
|
27
|
+
thumbsRef: __VLS_Elements["div"];
|
|
28
|
+
};
|
|
23
29
|
};
|
|
30
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
24
31
|
declare const __VLS_base: import('vue').DefineComponent<SwiperCarouselProps, {
|
|
25
32
|
swiper: import('vue').ShallowRef<Nullable<Swiper>, Nullable<Swiper>>;
|
|
26
33
|
moveTo(index: number, speed?: number, runCallbacks?: boolean): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
|
|
4
|
-
var n = /*#__PURE__*/ e
|
|
5
|
-
//#endregion
|
|
1
|
+
import e from "./SwiperCarousel.vue.js";
|
|
2
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// lib/components/carousel/SwiperCarousel.vue
|
|
4
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-60300bc1"]]);
|
|
6
5
|
export { n as default };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, mergeProps as o, nextTick as s, normalizeClass as c, onMounted as l, openBlock as u, renderList as d, renderSlot as f, shallowRef as p, unref as m, useId as h, useTemplateRef as g, vShow as _, watch as v, withDirectives as y, withModifiers as b } from "vue";
|
|
2
|
+
import { createSwiper as x } from "../../lazyModules/Swiper/factory.js";
|
|
3
|
+
import { AutoplayModule as S } from "../../lazyModules/Swiper/Autoplay/factory.js";
|
|
4
|
+
import { FreemodeModule as C } from "../../lazyModules/Swiper/FreeMode/factory.js";
|
|
5
|
+
import { KeyboardModule as w } from "../../lazyModules/Swiper/Keyboard/factory.js";
|
|
6
|
+
import { NavigationModule as T } from "../../lazyModules/Swiper/Navigation/factory.js";
|
|
7
|
+
import { PaginationModule as E } from "../../lazyModules/Swiper/Pagination/factory.js";
|
|
8
|
+
import { ThumbsModule as D } from "../../lazyModules/Swiper/Thumbs/factory.js";
|
|
9
|
+
import { ZoomModule as O } from "../../lazyModules/Swiper/Zoom/factory.js";
|
|
10
|
+
import '../../css/SwiperPaginationPrimitive.css';import '../../css/SwiperCarousel.css';/* empty css */
|
|
11
|
+
// lib/components/carousel/SwiperCarousel.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var k = ["id", "data-cy"], A = [
|
|
13
13
|
"data-idx",
|
|
14
14
|
"alt",
|
|
15
15
|
"width",
|
|
16
16
|
"height",
|
|
17
17
|
"onLoad"
|
|
18
|
-
], j = ["id"], M = ["alt"], N = /*@__PURE__*/
|
|
18
|
+
], j = ["id"], M = ["alt"], N = /*@__PURE__*/ a({
|
|
19
19
|
inheritAttrs: !1,
|
|
20
20
|
__name: "SwiperCarousel",
|
|
21
21
|
props: {
|
|
@@ -43,57 +43,57 @@ var k = ["id", "data-cy"], A = [
|
|
|
43
43
|
"firstSlideLoaded",
|
|
44
44
|
"init"
|
|
45
45
|
],
|
|
46
|
-
setup(
|
|
47
|
-
let F = P, I =
|
|
46
|
+
setup(a, { expose: N, emit: P }) {
|
|
47
|
+
let F = P, I = p(null), L = g("swiperRef"), R = g("thumbsRef"), z = p(!1), B = h(), V = t(() => a.id ?? B), H = a.swiperOptions?.slidesPerView || 1, U = !!a.swiperOptions?.keyboard, W = !!a.swiperOptions.navigation, G = !!a.swiperOptions.pagination, K = !!a.swiperOptions.autoplay, q = a.swiperOptions?.effect || "slider", J = (e, t = -1, n = !1) => {
|
|
48
48
|
if (!e.images) return { src: e.src || "" };
|
|
49
|
-
let r = "", i = "",
|
|
50
|
-
if (
|
|
51
|
-
for (let e in
|
|
52
|
-
let { mq: t, width: n } =
|
|
53
|
-
n && (
|
|
49
|
+
let r = "", i = "", o = "";
|
|
50
|
+
if (a.artDirection) {
|
|
51
|
+
for (let e in a.artDirection) {
|
|
52
|
+
let { mq: t, width: n } = a.artDirection[e];
|
|
53
|
+
n && (o += o ? `,${t} ${parseInt(n)}px` : `${t} ${parseInt(n)}px`);
|
|
54
54
|
}
|
|
55
55
|
i = e.images.reduce((e, t, n) => {
|
|
56
|
-
let r = Object.values(
|
|
56
|
+
let r = Object.values(a.artDirection)[n];
|
|
57
57
|
return !r || !r.width || (e += e ? `, ${t.storagePath} ${r.width}` : `${t.storagePath} ${r.width}`), e;
|
|
58
58
|
}, ""), r = e.images[0].storagePath;
|
|
59
59
|
} else {
|
|
60
60
|
let t = e.images;
|
|
61
|
-
e.images.length > 3 ? t = e.images.slice(2, 5) :
|
|
61
|
+
e.images.length > 3 ? t = e.images.slice(2, 5) : a.shiftFirstImage && (t[0] = t[1]), i = t.reduce((e, t, n) => (n === 0 && (r = `${t.storagePath}`), n > 0 && (e += ", "), `${e}${t.storagePath} ${n + 1}x`), "");
|
|
62
62
|
}
|
|
63
|
-
let
|
|
63
|
+
let s = r, c = i;
|
|
64
64
|
return typeof H == "number" && t > H ? (r = "", i = "", {
|
|
65
|
-
sizes:
|
|
66
|
-
"data-src":
|
|
67
|
-
"data-srcset":
|
|
65
|
+
sizes: o,
|
|
66
|
+
"data-src": s,
|
|
67
|
+
"data-srcset": c
|
|
68
68
|
}) : n ? {
|
|
69
69
|
src: r,
|
|
70
70
|
srcset: i,
|
|
71
|
-
sizes:
|
|
71
|
+
sizes: o,
|
|
72
72
|
loading: "lazy",
|
|
73
73
|
fetchpriority: "low"
|
|
74
74
|
} : {
|
|
75
75
|
src: r,
|
|
76
76
|
srcset: i,
|
|
77
|
-
sizes:
|
|
78
|
-
loading:
|
|
79
|
-
fetchpriority: !
|
|
77
|
+
sizes: o,
|
|
78
|
+
loading: a.lazyLoadImages || t >= H ? "lazy" : void 0,
|
|
79
|
+
fetchpriority: !a.lazyLoadImages && t === 0 ? "high" : "low"
|
|
80
80
|
};
|
|
81
81
|
}, Y = [], X = (e) => {
|
|
82
82
|
if (typeof H == "string") return;
|
|
83
83
|
let t = Y[e];
|
|
84
|
-
if (t && !t.src && (t.src = t.dataset.src || "", t.srcset = t.dataset.srcset || ""), e < H || e + 1 >= (
|
|
84
|
+
if (t && !t.src && (t.src = t.dataset.src || "", t.srcset = t.dataset.srcset || ""), e < H || e + 1 >= (a.images ?? []).length) return;
|
|
85
85
|
let n = Y[e + 1];
|
|
86
86
|
n && !n.src && (n.src = n?.dataset.src || "", n.srcset = n?.dataset.srcset || "");
|
|
87
87
|
}, Z = (e) => {
|
|
88
|
-
!e && Y?.[e] &&
|
|
88
|
+
!e && Y?.[e] && s(() => {
|
|
89
89
|
L.value?.setAttribute("data-first-slide-loaded", "true"), F("firstSlideLoaded");
|
|
90
90
|
});
|
|
91
|
-
}, Q = (
|
|
92
|
-
let
|
|
93
|
-
I.value = await e
|
|
91
|
+
}, Q = (e) => a.thumbSwiperOptions ? x(e, a.thumbSwiperOptions, [C(a.thumbSwiperOptions.freeMode)]) : null, $ = async (e, t) => {
|
|
92
|
+
let n = t ? await Q(t) : null;
|
|
93
|
+
I.value = await x(e, {
|
|
94
94
|
on: {
|
|
95
95
|
init: () => {
|
|
96
|
-
|
|
96
|
+
s(() => {
|
|
97
97
|
z.value = !0, F("init");
|
|
98
98
|
});
|
|
99
99
|
},
|
|
@@ -101,36 +101,36 @@ var k = ["id", "data-cy"], A = [
|
|
|
101
101
|
X(e.activeIndex), F("moved", { activeIndex: e.activeIndex });
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
...
|
|
105
|
-
...
|
|
106
|
-
swiper:
|
|
104
|
+
...n ? { thumbs: {
|
|
105
|
+
...a.swiperOptions.thumbs,
|
|
106
|
+
swiper: n
|
|
107
107
|
} } : {},
|
|
108
|
-
...
|
|
108
|
+
...a.swiperOptions
|
|
109
109
|
}, [
|
|
110
|
-
|
|
111
|
-
U ?
|
|
112
|
-
G ?
|
|
110
|
+
O(a.swiperOptions.zoom),
|
|
111
|
+
U ? w(a.swiperOptions.keyboard) : void 0,
|
|
112
|
+
G ? E({
|
|
113
113
|
el: ".swiper-pagination",
|
|
114
114
|
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]">
|
|
115
115
|
<span data-cy="swiper-pagination-current" class="${e}"></span>
|
|
116
116
|
/
|
|
117
117
|
<span data-cy="swiper-pagination-total" class="${t}"></span>
|
|
118
118
|
</div>`,
|
|
119
|
-
...typeof
|
|
119
|
+
...typeof a.swiperOptions.pagination == "boolean" ? {} : a.swiperOptions.pagination
|
|
120
120
|
}) : void 0,
|
|
121
|
-
W ?
|
|
121
|
+
W ? T({
|
|
122
122
|
nextEl: ".swiper-button-next",
|
|
123
123
|
prevEl: ".swiper-button-prev",
|
|
124
|
-
...typeof
|
|
124
|
+
...typeof a.swiperOptions.navigation == "boolean" ? {} : a.swiperOptions.navigation
|
|
125
125
|
}) : void 0,
|
|
126
|
-
K ?
|
|
127
|
-
|
|
126
|
+
K ? S(a.swiperOptions.autoplay) : void 0,
|
|
127
|
+
n ? D() : void 0
|
|
128
128
|
].filter(Boolean));
|
|
129
129
|
};
|
|
130
|
-
return
|
|
130
|
+
return l(() => {
|
|
131
131
|
L.value && setTimeout(() => $(L.value, R.value));
|
|
132
|
-
}),
|
|
133
|
-
|
|
132
|
+
}), v(() => a.images, () => {
|
|
133
|
+
s(() => {
|
|
134
134
|
I.value?.update();
|
|
135
135
|
});
|
|
136
136
|
}), N({
|
|
@@ -141,58 +141,57 @@ var k = ["id", "data-cy"], A = [
|
|
|
141
141
|
updateSlidesPerView: (e) => {
|
|
142
142
|
I.value && I.value.params.slidesPerView !== e && (I.value.params.slidesPerView = e, I.value.update());
|
|
143
143
|
}
|
|
144
|
-
}), (
|
|
144
|
+
}), (t, s) => (u(), r(e, null, [y(i("div", { class: c(["swiper-carousel-root", t.$attrs["root-classes"]]) }, [i("div", {
|
|
145
145
|
ref: "swiperRef",
|
|
146
146
|
id: V.value,
|
|
147
|
-
"data-cy":
|
|
148
|
-
class:
|
|
147
|
+
"data-cy": t.$attrs["data-cy"],
|
|
148
|
+
class: c(["swiper uikit-carousel", t.$attrs["swiper-classes"]])
|
|
149
149
|
}, [
|
|
150
|
-
|
|
151
|
-
class:
|
|
152
|
-
onClick:
|
|
153
|
-
}, [
|
|
154
|
-
key: `swiper_${V.value}_${
|
|
155
|
-
class:
|
|
156
|
-
}, [
|
|
150
|
+
i("div", {
|
|
151
|
+
class: c(["swiper-wrapper", [t.$attrs["swiper-wrapper-classes"], m(q) === "none" && "no-transition"]]),
|
|
152
|
+
onClick: s[0] ||= (e) => F("click")
|
|
153
|
+
}, [f(t.$slots, "default", {}, () => [(u(!0), r(e, null, d(a.images, (e, s) => (u(), r("div", {
|
|
154
|
+
key: `swiper_${V.value}_${s}`,
|
|
155
|
+
class: c(["swiper-slide", t.$attrs["swiper-slide-classes"]])
|
|
156
|
+
}, [i("div", { class: c(["swiper-zoom-container", t.$attrs["swiper-zoom-container-classes"]]) }, [a.backgroundImage ? n("", !0) : (u(), r("img", o({
|
|
157
157
|
key: 0,
|
|
158
158
|
ref_for: !0,
|
|
159
159
|
ref: (e) => {
|
|
160
160
|
Y.push(e);
|
|
161
161
|
},
|
|
162
|
-
class: ["disable-select", [
|
|
163
|
-
"data-idx": `${V.value}-slide-img-${
|
|
164
|
-
}, { ref_for: !0 }, J(
|
|
165
|
-
alt:
|
|
162
|
+
class: ["disable-select", [t.$attrs["slide-img-classes"] || e.classes]],
|
|
163
|
+
"data-idx": `${V.value}-slide-img-${s}`
|
|
164
|
+
}, { ref_for: !0 }, J(e, s), {
|
|
165
|
+
alt: e.alt,
|
|
166
166
|
itemprop: "image",
|
|
167
|
-
width:
|
|
168
|
-
height:
|
|
169
|
-
onLoad: (e) => Z(
|
|
170
|
-
}), null, 16, A))], 2)], 2))), 128)),
|
|
171
|
-
G ? (
|
|
167
|
+
width: e.width,
|
|
168
|
+
height: e.height,
|
|
169
|
+
onLoad: (e) => Z(s)
|
|
170
|
+
}), null, 16, A))], 2)], 2))), 128)), f(t.$slots, "last_slide", {}, void 0, !0)], !0)], 2),
|
|
171
|
+
G ? (u(), r("div", {
|
|
172
172
|
key: 0,
|
|
173
|
-
class:
|
|
174
|
-
onClick:
|
|
175
|
-
}, null, 2)) :
|
|
176
|
-
W ? (
|
|
173
|
+
class: c([t.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
174
|
+
onClick: s[1] ||= b(() => {}, ["stop"])
|
|
175
|
+
}, null, 2)) : n("", !0),
|
|
176
|
+
W ? (u(), r(e, { key: 1 }, [i("div", {
|
|
177
177
|
class: "swiper-button-prev",
|
|
178
178
|
"data-cy": "swiper-button-prev",
|
|
179
|
-
onClick:
|
|
180
|
-
}),
|
|
179
|
+
onClick: s[2] ||= b(() => {}, ["stop"])
|
|
180
|
+
}), i("div", {
|
|
181
181
|
class: "swiper-button-next",
|
|
182
182
|
"data-cy": "swiper-button-next",
|
|
183
|
-
onClick:
|
|
184
|
-
})], 64)) :
|
|
185
|
-
], 10, k),
|
|
183
|
+
onClick: s[3] ||= b(() => {}, ["stop"])
|
|
184
|
+
})], 64)) : n("", !0)
|
|
185
|
+
], 10, k), a.thumbSwiperOptions ? (u(), r("div", {
|
|
186
186
|
key: 0,
|
|
187
187
|
id: `thumb_${V.value}`,
|
|
188
188
|
ref: "thumbsRef",
|
|
189
|
-
class:
|
|
189
|
+
class: c(["swiper", t.$attrs["thumb-swiper-classes"]]),
|
|
190
190
|
thumbsSlider: ""
|
|
191
|
-
}, [
|
|
191
|
+
}, [i("div", { class: c(["swiper-wrapper", t.$attrs["thumb-swiper-wrapper-classes"]]) }, [(u(!0), r(e, null, d(a.images, (e, n) => (u(), r("div", {
|
|
192
192
|
key: `thumb_${V.value}_${n}`,
|
|
193
|
-
class:
|
|
194
|
-
}, [
|
|
193
|
+
class: c(["swiper-slide", t.$attrs["thumb-img-wrapper-classes"]])
|
|
194
|
+
}, [i("img", o({ class: t.$attrs["thumb-img-classes"] }, { ref_for: !0 }, J(e, -1, !1), { alt: e.alt }), null, 16, M)], 2))), 128))], 2)], 10, j)) : n("", !0)], 2), [[_, z.value]]), z.value ? n("", !0) : f(t.$slots, "placeholder", {}, void 0, !0, 0)], 64));
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
//#endregion
|
|
198
197
|
export { N as default };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
4
5
|
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
5
7
|
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, openBlock as n, renderSlot as r } from "vue";
|
|
2
|
+
import i from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// lib/components/carousel/SwiperSlide.vue
|
|
4
4
|
var a = {}, o = { class: "swiper-slide" }, s = { class: "swiper-zoom-container" };
|
|
5
|
-
function c(
|
|
6
|
-
return
|
|
5
|
+
function c(i, a) {
|
|
6
|
+
return n(), e("div", o, [t("div", s, [r(i.$slots, "default")])]);
|
|
7
7
|
}
|
|
8
|
-
var l = /*#__PURE__*/
|
|
9
|
-
//#endregion
|
|
8
|
+
var l = /*#__PURE__*/ i(a, [["render", c]]);
|
|
10
9
|
export { l as default };
|
package/dist/composables/mock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onMounted as e, onUnmounted as t, ref as n, unref as r } from "vue";
|
|
2
|
-
|
|
2
|
+
// lib/composables/mock.ts
|
|
3
3
|
var i = "ArrowUp", a = "ArrowDown", o = "Enter", s = "Escape", c = " ", l = "PageUp", u = "Home", d = "PageDown", f = "End", p = (p) => {
|
|
4
4
|
let { isDropdownOpen: m, disableSpaceHandler: h, global: g = !0, closeKeys: _ = [s, o] } = p, v = n(-1), y = n(-1), b = p.activate === void 0 || p.activate, x = () => {
|
|
5
5
|
v.value = -1, y.value = -1, m && (m.value = !1);
|
|
@@ -47,5 +47,4 @@ var i = "ArrowUp", a = "ArrowDown", o = "Enter", s = "Escape", c = " ", l = "Pag
|
|
|
47
47
|
onKeyDownHandler: C
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
//#endregion
|
|
51
50
|
export { p as useKeyboardController };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as e } from "vue";
|
|
2
|
-
|
|
2
|
+
// lib/composables/useFloatingLabel.ts
|
|
3
3
|
function t(t) {
|
|
4
4
|
let n = e("inline-label");
|
|
5
5
|
function r(e) {
|
|
@@ -9,11 +9,7 @@ function t(t) {
|
|
|
9
9
|
n.value !== "floating-label" && e && (n.value = "floating-label"), t("focusin");
|
|
10
10
|
};
|
|
11
11
|
function a(e) {
|
|
12
|
-
|
|
13
|
-
s(), t("focusout");
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
o();
|
|
12
|
+
e != null && `${e}`.trim().length > 0 ? (s(), t("focusout")) : o();
|
|
17
13
|
}
|
|
18
14
|
let o = () => {
|
|
19
15
|
n.value = "inline-label";
|
|
@@ -29,5 +25,4 @@ function t(t) {
|
|
|
29
25
|
setFloatingLabel: s
|
|
30
26
|
};
|
|
31
27
|
}
|
|
32
|
-
//#endregion
|
|
33
28
|
export { t as useFloatingLabel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.uikit-base-accordion-trigger[data-state=open]>.uikit-base-accordion-item-arrow{transform:rotate(180deg)}.uikit-base-accordion-item-content{will-change:animation, height;overflow:hidden}.uikit-base-accordion-item-content[data-state=open][data-interacted]{animation:.2s ease-out uikit-accordion-slide-down}.uikit-base-accordion-item-content[data-state=closed][data-interacted]{animation:.2s ease-out uikit-accordion-slide-up}@keyframes uikit-accordion-slide-down{0%{height:0}to{height:var(--reka-accordion-content-height)}}@keyframes uikit-accordion-slide-up{0%{height:var(--reka-accordion-content-height)}to{height:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.input-wrapper[data-v-
|
|
1
|
+
.input-wrapper[data-v-2cf9bee3]{--icon-default-size:44px}.invalid-bg[data-v-2cf9bee3]{--invalid-img:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-2cf9bee3]{--valid-img:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-2cf9bee3],.valid-bg[data-v-2cf9bee3]{background-position:right 12px top 10px;background-size:20px}.under-label[data-v-2cf9bee3]{font-style:italic;left:4px}.has-right-icon[data-v-2cf9bee3]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-2cf9bee3]>label.inline-label{left:var(--icon-default-size)}[data-v-2cf9bee3] .text-input-icon{z-index:20;box-sizing:border-box;--icon-size-sm:16px;--icon-size-md:20px;--icon-size-lg:25px;position:absolute}[data-v-2cf9bee3] .text-input-icon.left{left:5px}[data-v-2cf9bee3] .text-input-icon.right{right:5px}[data-v-2cf9bee3] .text-input-icon{--icon-top:5px;--icon-size:var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-2cf9bee3] .text-input-icon.md{--icon-size:var(--icon-size-md)}[data-v-2cf9bee3] .text-input-icon.lg{--icon-top:0;--icon-size:var(--icon-size-lg)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.uikit-modal-dialog{--modal-max-height:690px;--modal-width-sm:496px;--modal-width-md:592px;--modal-width-lg:670px;--modal-max-width:var(--modal-width-sm);max-width:var(--modal-max-width);will-change:transform}.base-modal-md{--modal-max-width:var(--modal-width-md)}.base-modal-lg{--modal-max-width:var(--modal-width-lg)}@media not all and (width>=576px){.base-modal-sm,.base-modal-md,.base-modal-lg{max-width:none}}@media (width>=576px){.base-modal-sm.uikit-modal-dialog,.base-modal-md.uikit-modal-dialog,.base-modal-lg.uikit-modal-dialog{max-height:var(--modal-max-height)}}.base-modal-xxl{max-width:1500px}.modal-transition-enter-active.bbt-backdrop{animation:.25s ease-out uikit-modal-backdrop-opacity}@media (width>=576px){.modal-transition-enter-active .uikit-modal-dialog:not(.centered){animation:.25s ease-out uikit-modal-slide-down}.modal-transition-enter-active .uikit-modal-dialog.centered{animation:.25s ease-out forwards uikit-modal-slide-down-centered}}.modal-transition-enter-active .uikit-modal-dialog{animation:.25s ease-out forwards uikit-modal-slide-up}.modal-transition-leave-from .uikit-modal-dialog,.modal-transition-leave-active .uikit-modal-dialog,.modal-transition-leave-to .uikit-modal-dialog{overflow-y:hidden}@media (width>=576px){.modal-transition-leave-active .uikit-modal-dialog:not(.centered){animation:.25s forwards uikit-modal-slide-down-back}.modal-transition-leave-active .uikit-modal-dialog.centered{animation:.25s forwards uikit-modal-slide-down-centered-back}}.modal-transition-leave-active .uikit-modal-dialog{animation:.25s both uikit-modal-slide-up-back}@keyframes uikit-modal-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes uikit-modal-slide-up-back{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes uikit-modal-slide-down{0%{transform:translateY(-120%)}to{transform:translateY(0)}}@keyframes uikit-modal-slide-down-centered{0%{transform:translateY(calc(-50vh - 50%))}to{transform:translateY(-50%)}}@keyframes uikit-modal-slide-down-back{0%{transform:translateY(0%)}to{transform:translateY(-150%)}}@keyframes uikit-modal-slide-down-centered-back{0%{transform:translateY(-50%)}to{transform:translateY(calc(-50vh - 100%))}}@keyframes uikit-modal-backdrop-opacity{0%{opacity:0}to{opacity:1}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.range_container[data-v-bf5ffbaf]{padding-top:15px}.sliders_control[data-v-bf5ffbaf]{min-height:30px;position:relative}.form_control[data-v-bf5ffbaf]{color:#635a5a;justify-content:space-between;font-size:24px;display:flex;position:relative}input[type=range][data-v-bf5ffbaf]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgb(var(--uikit-color-w-secondary,180 194 240));pointer-events:none;width:100%;height:3px;position:absolute}input[type=range][data-v-bf5ffbaf]::-webkit-slider-thumb:hover{background:#f7f7f7}input[type=range][data-v-bf5ffbaf]::-webkit-slider-thumb:active{-webkit-box-shadow:inset 0 0 3px #387bbe,0 0 9px #387bbe;box-shadow:inset 0 0 3px #387bbe,0 0 9px #387bbe}input[type=range][data-v-bf5ffbaf]::-moz-range-thumb{-moz-appearance:none;appearance:none;pointer-events:all;cursor:pointer;background-color:#fff;border-radius:50%;width:24px;height:24px;box-shadow:0 0 0 1px #c6c6c6}input[type=range][data-v-bf5ffbaf]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:all;border:2px solid rgb(var(--uikit-color-w-primary,43 93 255));cursor:pointer;background-color:#fff;border-radius:50%;width:24px;height:24px}input[type=number][data-v-bf5ffbaf]{color:#8a8383;border:none;width:50px;height:30px;font-size:20px}input[type=number][data-v-bf5ffbaf]::-webkit-inner-spin-button,input[type=number][data-v-bf5ffbaf]::-webkit-outer-spin-button{opacity:1}.fromSlider[data-v-bf5ffbaf]{z-index:1;height:0!important}.toSlider[data-v-bf5ffbaf]{height:3px!important}[data-v-bf5ffbaf] .form-control{max-width:none!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.uikit-alert-viewport{--uikit-alert-viewport-padding:0px;--uikit-alert-viewport-position:fixed;--uikit-alert-viewport-top:auto;--uikit-alert-viewport-right:auto;--uikit-alert-viewport-bottom:0px;--uikit-alert-viewport-left:0px;--uikit-alert-viewport-display:flex;--uikit-alert-viewport-flex-direction:column;--uikit-alert-viewport-align-items:flex-start;--uikit-alert-viewport-justify-content:flex-start;padding:var(--uikit-alert-viewport-padding);position:var(--uikit-alert-viewport-position);inset:var(--uikit-alert-viewport-top) var(--uikit-alert-viewport-right) var(--uikit-alert-viewport-bottom) var(--uikit-alert-viewport-left);display:var(--uikit-alert-viewport-display);flex-direction:var(--uikit-alert-viewport-flex-direction);align-items:var(--uikit-alert-viewport-align-items);justify-content:var(--uikit-alert-viewport-justify-content)}.uikit-snackbar{--uikit-alert-bg-color:rgb(var(--uikit-color-w-lavender,233 239 254));--uikit-alert-text-color:rgb(var(--uikit-color-w-primary,43 93 255));--uikit-alert-progress-indicator-bg-color:rgb(var(--uikit-color-w-primary,43 93 255))}.uikit-snackbar .uikit-snackbar-progress-indicator{background-color:var(--uikit-alert-progress-indicator-bg-color)}.uikit-snackbar{background-color:var(--uikit-alert-bg-color);color:var(--uikit-alert-text-color)}.uikit-snackbar.uikit-snackbar-w-danger{--uikit-alert-bg-color:#fff4f4;--uikit-alert-text-color:#f20003;--uikit-alert-progress-indicator-bg-color:#f20003}.uikit-snackbar.uikit-snackbar-w-darkblue{--uikit-alert-bg-color:rgb(var(--uikit-color-w-dark-primary,42 55 97));--uikit-alert-text-color:#fff}.uikit-toast-root{will-change:animation, transform, opacity;--uikit-toast-root-gap:8px;--uikit-toast-root-display:flex;display:var(--uikit-toast-root-display);gap:var(--uikit-toast-root-gap);--uikit-toast-root-open-animation:uikit-snackbar-open-right .1s ease-out, uikit-snackbar-fade-in .1s ease-out;--uikit-toast-root-swipe-out-animation:uikit-snackbar-slide-right .1s ease-out, uikit-snackbar-fade-out .1s ease-out}.uikit-toast-root[data-swipe-direction=left]{--uikit-toast-root-open-animation:uikit-snackbar-open-left .1s ease-out, uikit-snackbar-fade-in .1s ease-out;--uikit-toast-root-swipe-out-animation:uikit-snackbar-slide-left .1s ease-out, uikit-snackbar-fade-out .1s ease-out}.uikit-toast-root[data-state=open]{animation:var(--uikit-toast-root-open-animation)}.uikit-toast-root[data-state=closed]{animation:var(--uikit-toast-root-swipe-out-animation)}.uikit-toast-root[data-swipe=move]{transform:translateX(var(--reka-toast-swipe-move-x))}.uikit-toast-root[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}.uikit-toast-root[data-swipe=end]{animation:var(--uikit-toast-root-swipe-out-animation)}@keyframes uikit-snackbar-fade-in{0%{opacity:0}to{opacity:1}}@keyframes uikit-snackbar-fade-out{0%{opacity:1}to{opacity:0}}@keyframes uikit-snackbar-open-right{0%{transform:translate(100%)}to{transform:translateX(var(--reka-toast-swipe-end-x))}}@keyframes uikit-snackbar-open-left{0%{transform:translate(-100%)}to{transform:translateX(var(--reka-toast-swipe-end-x))}}@keyframes uikit-snackbar-slide-right{0%{transform:translateX(var(--reka-toast-swipe-end-x))}to{transform:translate(100%)}}@keyframes uikit-snackbar-slide-left{0%{transform:translateX(var(--reka-toast-swipe-end-x))}to{transform:translate(-100%)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.uikit-clearable-autocomplete{--input-padding:0;--input-margin:0}.uikit-clearable-autocomplete input{margin:var(--input-margin);padding:var(--input-padding)}.uikit-clearable-autocomplete .uikit-clear-btn{--bg-color:transparent;background-color:var(--bg-color)}.uikit-progress-bar-track{background:#2b5dff20;border-radius:2px;height:3px;overflow:hidden}.uikit-progress-bar-fill{background:linear-gradient(90deg,#0000,#2b5dff,#6b8fff,#2b5dff,#0000);width:40%;height:100%;animation:1.2s ease-in-out infinite progress-slide}@keyframes progress-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}
|
|
1
|
+
.uikit-clearable-autocomplete{--input-padding:0;--input-margin:0}.uikit-clearable-autocomplete input{margin:var(--input-margin);padding:var(--input-padding)}.uikit-clearable-autocomplete .uikit-clear-btn{--bg-color:transparent;background-color:var(--bg-color)}.uikit-progress-bar-track{background:#2b5dff20;border-radius:2px;height:3px;overflow:hidden}.uikit-progress-bar-fill{background:linear-gradient(90deg,#0000,#2b5dff,#6b8fff,#2b5dff,#0000);width:40%;height:100%;animation:1.2s ease-in-out infinite uikit-progress-slide}@keyframes uikit-progress-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.no-transition[data-v-60300bc1]{transition-duration:0s!important}.disable-select[data-v-60300bc1]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-60300bc1]{pointer-events:auto!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.swiper-button-disabled[data-v-7a7f98db]{pointer-events:auto!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.swiper.uikit-carousel[data-v-e9b561b3]{opacity:0}.is-initialized>.swiper.uikit-carousel[data-v-e9b561b3]{opacity:1}
|
|
@@ -4,7 +4,7 @@ status: preferred
|
|
|
4
4
|
category: Forms
|
|
5
5
|
summary: Single-choice select field (combobox + listbox) with floating label, validation state and keyboard support.
|
|
6
6
|
import: @wikicasa-dev/components/UIKit/AccessibleSelect
|
|
7
|
-
version:
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# AccessibleSelect
|
|
@@ -15,6 +15,8 @@ Single-choice select field (combobox + listbox) with floating label, validation
|
|
|
15
15
|
import AccessibleSelect from "@wikicasa-dev/components/UIKit/AccessibleSelect";
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
Stylesheets: `css/AccessibleSelect`.
|
|
19
|
+
|
|
18
20
|
Use to pick exactly one value from a short, known list inside a form or filter bar: contract type, property condition, typology, sort order. It looks like `BaseInput`. For long or remote lists use `ClearableAutocomplete`; for 2–4 always-visible choices consider `RadioButtonGroup`; for a menu of actions or links use `BaseDropDown`.
|
|
19
21
|
|
|
20
22
|
Options are objects `{ id, label }` (optional `visibleLabel`, shown in the closed field instead of `label`; extra fields are kept). `v-model` holds the whole selected option.
|
|
@@ -4,7 +4,7 @@ status: primitive
|
|
|
4
4
|
category: Layout
|
|
5
5
|
summary: Unstyled collapsible panel of a primitive accordion item; hidden while the item is closed.
|
|
6
6
|
import: @wikicasa-dev/components/UIKit/Accordion/AccordionContentPrimitive
|
|
7
|
-
version:
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# AccordionContentPrimitive
|
|
@@ -4,7 +4,7 @@ status: primitive
|
|
|
4
4
|
category: Layout
|
|
5
5
|
summary: Unstyled heading element (h3 by default) wrapping the trigger of a primitive accordion item.
|
|
6
6
|
import: @wikicasa-dev/components/UIKit/Accordion/AccordionHeaderPrimitive
|
|
7
|
-
version:
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# AccordionHeaderPrimitive
|
|
@@ -4,7 +4,7 @@ status: primitive
|
|
|
4
4
|
category: Layout
|
|
5
5
|
summary: Unstyled accordion section wrapper, for custom accordion items composed from the Accordion*Primitive parts.
|
|
6
6
|
import: @wikicasa-dev/components/UIKit/Accordion/AccordionItemPrimitive
|
|
7
|
-
version:
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# AccordionItemPrimitive
|
|
@@ -74,10 +74,10 @@ _Generated from the component's types. Do not edit by hand._
|
|
|
74
74
|
| Name | Type | Default | Required | Description |
|
|
75
75
|
| --- | --- | --- | --- | --- |
|
|
76
76
|
| `disabled` | `boolean` | | | Whether or not an accordion item is disabled from user interaction. When `true`, prevents the user from interacting with the item. |
|
|
77
|
-
| `value` | `string` | | yes | A string value for the accordion item. All items within an accordion should use a unique value. |
|
|
78
|
-
| `unmountOnHide` | `boolean` | | | When `true`, the element will be unmounted on closed state. |
|
|
79
77
|
| `asChild` | `boolean` | | | Change the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
|
|
80
78
|
| `as` | `AsTag \| Component` | | | The element or component this component should render as. Can be overwritten by `asChild`. |
|
|
79
|
+
| `value` | `string` | | yes | A string value for the accordion item. All items within an accordion should use a unique value. |
|
|
80
|
+
| `unmountOnHide` | `boolean` | | | When `true`, this item's content is unmounted while closed; when `false`, it stays mounted (hidden). Unset, the item follows the root accordion's `unmountOnHide`. |
|
|
81
81
|
|
|
82
82
|
### Events
|
|
83
83
|
|
|
@@ -4,7 +4,7 @@ status: primitive
|
|
|
4
4
|
category: Layout
|
|
5
5
|
summary: Unstyled button that opens and closes a primitive accordion item.
|
|
6
6
|
import: @wikicasa-dev/components/UIKit/Accordion/AccordionTriggerPrimitive
|
|
7
|
-
version:
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# AccordionTriggerPrimitive
|