@wikicasa-dev/components 3.0.0-alpha.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.d.ts +64 -0
- package/dist/UIKit/AccessibleSelect.js +4 -0
- package/dist/UIKit/AccessibleSelect.vue.js +217 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +17 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +23 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +12 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +22 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +21 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +25 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +14 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +23 -0
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +44 -0
- package/dist/UIKit/Accordion/BaseAccordion.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +51 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +33 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +71 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +77 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +4 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +270 -0
- package/dist/UIKit/BaseAlert.d.ts +24 -0
- package/dist/UIKit/BaseAlert.js +4 -0
- package/dist/UIKit/BaseAlert.vue.js +14 -0
- package/dist/UIKit/BaseAutocomplete.d.ts +62 -0
- package/dist/UIKit/BaseAutocomplete.js +4 -0
- package/dist/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/UIKit/BaseBadge.d.ts +20 -0
- package/dist/UIKit/BaseBadge.js +4 -0
- package/dist/UIKit/BaseBadge.vue.js +17 -0
- package/dist/UIKit/BaseBreadcrumb.d.ts +34 -0
- package/dist/UIKit/BaseBreadcrumb.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.vue.js +39 -0
- package/dist/UIKit/BaseButton.d.ts +75 -0
- package/dist/UIKit/BaseButton.js +4 -0
- package/dist/UIKit/BaseButton.vue.js +90 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +54 -0
- package/dist/UIKit/BaseComplexToggle.js +5 -0
- package/dist/UIKit/BaseComplexToggle.vue.js +77 -0
- package/dist/UIKit/BaseDropDown.d.ts +95 -0
- package/dist/UIKit/BaseDropDown.js +4 -0
- package/dist/UIKit/BaseDropDown.vue.js +171 -0
- package/dist/UIKit/BaseFloatingLabel.d.ts +24 -0
- package/dist/UIKit/BaseFloatingLabel.js +5 -0
- package/dist/UIKit/BaseFloatingLabel.vue.js +43 -0
- package/dist/UIKit/BaseInput.d.ts +63 -0
- package/dist/UIKit/BaseInput.js +5 -0
- package/dist/UIKit/BaseInput.vue.js +191 -0
- package/dist/UIKit/BaseModal.d.ts +72 -0
- package/dist/UIKit/BaseModal.js +4 -0
- package/dist/UIKit/BaseModal.vue.js +161 -0
- package/dist/UIKit/{BasePagination.vue.d.ts → BasePagination.d.ts} +13 -5
- package/dist/UIKit/BasePagination.js +4 -0
- package/dist/UIKit/BasePagination.vue.js +199 -0
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +47 -0
- package/dist/UIKit/BaseSelect/SelectItem.js +4 -0
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +38 -0
- package/dist/UIKit/{BaseSlider.vue.d.ts → BaseSlider.d.ts} +6 -7
- package/dist/UIKit/BaseSlider.js +5 -0
- package/dist/UIKit/BaseSlider.vue.js +152 -0
- package/dist/UIKit/BaseSnackbar.d.ts +64 -0
- package/dist/UIKit/BaseSnackbar.js +4 -0
- package/dist/UIKit/BaseSnackbar.vue.js +140 -0
- package/dist/UIKit/{BaseTextarea.vue.d.ts → BaseTextarea.d.ts} +10 -10
- package/dist/UIKit/BaseTextarea.js +5 -0
- package/dist/UIKit/BaseTextarea.vue.js +118 -0
- package/dist/UIKit/BaseToggle.d.ts +30 -0
- package/dist/UIKit/BaseToggle.js +4 -0
- package/dist/UIKit/BaseToggle.vue.js +37 -0
- package/dist/UIKit/BaseTooltip.d.ts +37 -0
- package/dist/UIKit/BaseTooltip.js +5 -0
- package/dist/UIKit/BaseTooltip.vue.js +31 -0
- package/dist/UIKit/BaseUploadFile.d.ts +40 -0
- package/dist/UIKit/BaseUploadFile.js +4 -0
- package/dist/UIKit/BaseUploadFile.vue.js +63 -0
- package/dist/UIKit/Card/BaseCard.d.ts +25 -0
- package/dist/UIKit/Card/BaseCard.js +4 -0
- package/dist/UIKit/Card/BaseCard.vue.js +24 -0
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +15 -0
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -0
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +15 -0
- package/dist/UIKit/Card/CardImagePrimitive.js +4 -0
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -0
- package/dist/UIKit/Card/CardRootPrimitive.d.ts +20 -0
- package/dist/UIKit/Card/CardRootPrimitive.js +4 -0
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +23 -0
- package/dist/UIKit/Card/type.d.ts +3 -0
- package/dist/UIKit/Card/type.js +3 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +52 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.js +4 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +74 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.js +4 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +131 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +45 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +55 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +31 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +37 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +26 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +38 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.d.ts +4 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +4 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +19 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +90 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +4 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +33 -0
- package/dist/UIKit/Radio/RadioButton.d.ts +38 -0
- package/dist/UIKit/Radio/RadioButton.js +4 -0
- package/dist/UIKit/Radio/RadioButton.vue.js +51 -0
- package/dist/UIKit/Radio/RadioGroup.d.ts +64 -0
- package/dist/UIKit/Radio/RadioGroup.js +4 -0
- package/dist/UIKit/Radio/RadioGroup.vue.js +67 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +38 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +42 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +17 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +46 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +28 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +4 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +32 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +15 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +11 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +4 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -0
- package/dist/UIKit/Slider/{SimpleSlider.vue.d.ts → SimpleSlider.d.ts} +6 -6
- package/dist/UIKit/Slider/SimpleSlider.js +5 -0
- package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -0
- package/dist/UIKit/StaticSpinner.d.ts +7 -0
- package/dist/UIKit/StaticSpinner.js +5 -0
- package/dist/UIKit/StaticSpinner.vue.js +24 -0
- package/dist/UIKit/Tab/BaseTab.d.ts +21 -0
- package/dist/UIKit/Tab/BaseTab.js +4 -0
- package/dist/UIKit/Tab/BaseTab.vue.js +14 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +14 -0
- package/dist/UIKit/Tab/BaseTabList.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +22 -0
- package/dist/UIKit/Tab/BaseTabPanel.js +4 -0
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -0
- package/dist/UIKit/Tab/BaseTabView.d.ts +49 -0
- package/dist/UIKit/Tab/BaseTabView.js +4 -0
- package/dist/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +35 -0
- package/dist/UIKit/Tab/v2/BaseTabs.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +42 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.d.ts +14 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +25 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.d.ts +16 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +28 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.d.ts +14 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +24 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.d.ts +25 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +25 -0
- package/dist/UIKit/frameUtils.d.ts +14 -0
- package/dist/UIKit/frameUtils.js +5 -0
- package/dist/UIKit/types.d.ts +10 -52
- package/dist/UIKit/types.js +0 -0
- package/dist/UIKit/useScrollLock.d.ts +4 -0
- package/dist/UIKit/useScrollLock.js +27 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/chart/DoughnutChart.d.ts +8 -0
- package/dist/chart/DoughnutChart.js +4 -0
- package/dist/chart/DoughnutChart.vue.js +25 -0
- package/dist/chart/LineChart.d.ts +11 -0
- package/dist/chart/LineChart.js +4 -0
- package/dist/chart/LineChart.vue.js +27 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +24 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.js +4 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/components/IntersectionObserver/{IntersectionObserver.vue.d.ts → IntersectionObserver.d.ts} +16 -19
- package/dist/components/IntersectionObserver/IntersectionObserver.js +4 -0
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +50 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +21 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +4 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +27 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +4 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +24 -0
- package/dist/components/IntersectionObserver/v2/types.d.ts +4 -0
- package/dist/components/IntersectionObserver/v2/types.js +3 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.d.ts +9 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.d.ts +9 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +30 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +22 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.d.ts +69 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +98 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.d.ts +18 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.d.ts +62 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.vue.js +56 -0
- package/dist/components/carousel/Primitive/deferredImages.d.ts +17 -0
- package/dist/components/carousel/Primitive/deferredImages.js +10 -0
- package/dist/components/carousel/SwiperCarousel.d.ts +57 -0
- package/dist/components/carousel/SwiperCarousel.js +5 -0
- package/dist/components/carousel/SwiperCarousel.vue.js +197 -0
- package/dist/components/carousel/SwiperSlide.d.ts +15 -0
- package/dist/components/carousel/SwiperSlide.js +9 -0
- package/dist/composables/mock.d.ts +25 -0
- package/dist/composables/mock.js +50 -0
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +28 -0
- package/dist/composables/useValidator.js +5 -0
- package/dist/css/AccessibleSelect.css +1 -0
- package/dist/css/BaseAccordionItem.css +1 -0
- package/dist/css/BaseAlert.css +1 -0
- package/dist/css/BaseAutocomplete.css +1 -0
- package/dist/css/BaseBadge.css +1 -0
- package/dist/css/BaseCard.css +1 -0
- package/dist/css/BaseComplexToggle.css +1 -0
- package/dist/css/BaseDropDown.css +1 -0
- package/dist/css/BaseFloatingLabel.css +1 -0
- package/dist/css/BaseInput.css +1 -0
- package/dist/css/BaseModal.css +1 -0
- package/dist/css/BaseShimmerLoader.css +1 -0
- package/dist/css/BaseSlider.css +1 -0
- package/dist/css/BaseSnackbar.css +1 -0
- package/dist/css/BaseTabs.css +1 -0
- package/dist/css/BaseTabsIndicator.css +1 -0
- package/dist/css/BaseTextarea.css +1 -0
- package/dist/css/BaseTooltip.css +1 -0
- package/dist/css/CheckboxBtn.css +1 -0
- package/dist/css/ClearableAutocomplete.css +1 -0
- package/dist/css/RadioButtonItem.css +1 -0
- package/dist/css/SimpleSlider.css +1 -0
- package/dist/css/StaticSpinner.css +1 -0
- package/dist/css/SwiperCarousel.css +1 -0
- package/dist/css/SwiperNavigationPrimitive.css +1 -0
- package/dist/css/SwiperPaginationPrimitive.css +1 -0
- package/dist/css/SwiperRootPrimitive.css +1 -0
- package/dist/css/SwiperSlideImagePrimitive.css +1 -0
- package/dist/css/swiper-free-mode.css +1 -0
- package/dist/css/swiper-navigation.css +1 -0
- package/dist/css/swiper-pagination.css +1 -0
- package/dist/css/swiper-swiper.css +1 -0
- package/dist/css/swiper-zoom.css +1 -0
- package/dist/css/tailwind.css +1 -0
- package/dist/css/tokens.css +1 -0
- package/dist/docs/AccessibleSelect.md +123 -0
- package/dist/docs/AccordionContentPrimitive.md +70 -0
- package/dist/docs/AccordionHeaderPrimitive.md +70 -0
- package/dist/docs/AccordionItemPrimitive.md +98 -0
- package/dist/docs/AccordionTriggerPrimitive.md +71 -0
- package/dist/docs/BaseAccordion.md +98 -0
- package/dist/docs/BaseAccordionItem.md +102 -0
- package/dist/docs/BaseAlert.md +85 -0
- package/dist/docs/BaseAutocomplete.md +127 -0
- package/dist/docs/BaseBadge.md +94 -0
- package/dist/docs/BaseBreadcrumb.md +83 -0
- package/dist/docs/BaseButton.md +129 -0
- package/dist/docs/BaseCard.md +112 -0
- package/dist/docs/BaseComplexToggle.md +101 -0
- package/dist/docs/BaseDropDown.md +124 -0
- package/dist/docs/BaseFloatingLabel.md +91 -0
- package/dist/docs/BaseInput.md +132 -0
- package/dist/docs/BaseModal.md +131 -0
- package/dist/docs/BasePagination.md +109 -0
- package/dist/docs/BaseShimmerLoader.md +88 -0
- package/dist/docs/BaseSlider.md +89 -0
- package/dist/docs/BaseSnackbar.md +122 -0
- package/dist/docs/BaseTab.md +84 -0
- package/dist/docs/BaseTabView.md +90 -0
- package/dist/docs/BaseTabs.md +118 -0
- package/dist/docs/BaseTabsContent.md +71 -0
- package/dist/docs/BaseTabsIndicator.md +75 -0
- package/dist/docs/BaseTabsList.md +76 -0
- package/dist/docs/BaseTabsTrigger.md +70 -0
- package/dist/docs/BaseTextarea.md +101 -0
- package/dist/docs/BaseToggle.md +88 -0
- package/dist/docs/BaseTooltip.md +89 -0
- package/dist/docs/BaseUploadFile.md +96 -0
- package/dist/docs/CardDescriptionPrimitive.md +73 -0
- package/dist/docs/CardImagePrimitive.md +73 -0
- package/dist/docs/CardRootPrimitive.md +101 -0
- package/dist/docs/CheckboxBtn.md +98 -0
- package/dist/docs/CheckboxButtonGroup.md +115 -0
- package/dist/docs/CheckboxGroup.md +102 -0
- package/dist/docs/CheckboxGroupItemPrimitive.md +105 -0
- package/dist/docs/CheckboxGroupPrimitive.md +107 -0
- package/dist/docs/ClearableAutocomplete.md +137 -0
- package/dist/docs/DoughnutChart.md +88 -0
- package/dist/docs/INDEX.md +133 -0
- package/dist/docs/IntersectionObservable.md +78 -0
- package/dist/docs/IntersectionObserver.md +84 -0
- package/dist/docs/IntersectionObserverProvider.md +98 -0
- package/dist/docs/IntersectionObserverTarget.md +73 -0
- package/dist/docs/LineChart.md +98 -0
- package/dist/docs/ProgressIndicatorPrimitive.md +70 -0
- package/dist/docs/ProgressRootPrimitive.md +106 -0
- package/dist/docs/RadioButton.md +86 -0
- package/dist/docs/RadioButtonGroup.md +107 -0
- package/dist/docs/RadioButtonItem.md +103 -0
- package/dist/docs/RadioGroup.md +95 -0
- package/dist/docs/RadioGroupItemPrimitive.md +102 -0
- package/dist/docs/SelectItem.md +100 -0
- package/dist/docs/ShimmerMultiLine.md +79 -0
- package/dist/docs/SimpleSlider.md +82 -0
- package/dist/docs/StaticSpinner.md +78 -0
- package/dist/docs/SwiperCarousel.md +128 -0
- package/dist/docs/SwiperNavigationPrimitive.md +85 -0
- package/dist/docs/SwiperPaginationPrimitive.md +82 -0
- package/dist/docs/SwiperPrimitive.md +77 -0
- package/dist/docs/SwiperRootPrimitive.md +125 -0
- package/dist/docs/SwiperSlide.md +75 -0
- package/dist/docs/SwiperSlideImagePrimitive.md +100 -0
- package/dist/docs/SwiperThumbnailPrimitive.md +96 -0
- package/dist/docs/TOKENS.md +50 -0
- package/dist/docs/agent-index.md +86 -0
- package/dist/index.d.ts +68 -45
- package/dist/index.js +68 -86
- package/dist/lazyModules/ChartJs/Chart.d.ts +8 -0
- package/dist/lazyModules/ChartJs/Chart.js +4 -0
- package/dist/lazyModules/ChartJs/DoughnutChart/core.d.ts +2 -0
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +4 -0
- package/dist/lazyModules/ChartJs/LineChart/cartesian.d.ts +2 -0
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +4 -0
- package/dist/lazyModules/ChartJs/LineChart/core.d.ts +2 -0
- package/dist/lazyModules/ChartJs/LineChart/core.js +4 -0
- package/dist/lazyModules/ChartJs/Plugins/Legend.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +3 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.d.ts +0 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -0
- package/dist/lazyModules/ChartJs/Plugins/Title.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Title.js +3 -0
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +3 -0
- package/dist/lazyModules/Swiper/Autoplay/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -0
- package/dist/lazyModules/Swiper/Autoplay/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Autoplay/index.js +2 -0
- package/dist/lazyModules/Swiper/Controller/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Controller/factory.js +6 -0
- package/dist/lazyModules/Swiper/Controller/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Controller/index.js +2 -0
- package/dist/lazyModules/Swiper/FreeMode/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -0
- package/dist/lazyModules/Swiper/FreeMode/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/FreeMode/index.js +2 -0
- package/dist/lazyModules/Swiper/Keyboard/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -0
- package/dist/lazyModules/Swiper/Keyboard/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Keyboard/index.js +2 -0
- package/dist/lazyModules/Swiper/Navigation/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Navigation/factory.js +6 -0
- package/dist/lazyModules/Swiper/Navigation/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Navigation/index.js +2 -0
- package/dist/lazyModules/Swiper/Pagination/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Pagination/factory.js +6 -0
- package/dist/lazyModules/Swiper/Pagination/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Pagination/index.js +2 -0
- package/dist/lazyModules/Swiper/Thumbs/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -0
- package/dist/lazyModules/Swiper/Thumbs/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Thumbs/index.js +2 -0
- package/dist/lazyModules/Swiper/Zoom/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Zoom/factory.js +6 -0
- package/dist/lazyModules/Swiper/Zoom/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Zoom/index.js +2 -0
- package/dist/lazyModules/Swiper/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/factory.js +9 -0
- package/dist/lazyModules/Swiper/index.d.ts +20 -0
- package/dist/lazyModules/Swiper/index.js +5 -0
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -0
- package/dist/lazyModules/Swiper/types.d.ts +5 -0
- package/dist/lazyModules/Swiper/types.js +0 -0
- package/dist/lazyModules/VueChartJs/Doughnut/factory.d.ts +7 -0
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -0
- package/dist/lazyModules/VueChartJs/Doughnut/index.d.ts +9 -0
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +4 -0
- package/dist/lazyModules/VueChartJs/Line/factory.d.ts +7 -0
- package/dist/lazyModules/VueChartJs/Line/factory.js +8 -0
- package/dist/lazyModules/VueChartJs/Line/index.d.ts +9 -0
- package/dist/lazyModules/VueChartJs/Line/index.js +4 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/index.js +0 -0
- package/dist/types.js +0 -1
- package/dist/utils.js +3 -5
- package/package.json +73 -42
- package/dist/AccessibleSelect.js +0 -4
- package/dist/BaseAccordion.js +0 -4
- package/dist/BaseAccordionBtn.js +0 -4
- package/dist/BaseAccordionContent.js +0 -4
- package/dist/BaseAccordionItem.js +0 -4
- package/dist/BaseAlert.js +0 -4
- package/dist/BaseAutocomplete.js +0 -4
- package/dist/BaseBadge.js +0 -4
- package/dist/BaseBreadcrumb.js +0 -4
- package/dist/BaseButton.js +0 -4
- package/dist/BaseCard.js +0 -38
- package/dist/BaseComplexToggle.js +0 -107
- package/dist/BaseDropDown.js +0 -4
- package/dist/BaseFloatingLabel.js +0 -41
- package/dist/BaseIcon.js +0 -28
- package/dist/BaseInput.js +0 -212
- package/dist/BaseModal.js +0 -4
- package/dist/BasePagination.js +0 -4
- package/dist/BasePaper.js +0 -14
- package/dist/BaseShimmerLoader.js +0 -22
- package/dist/BaseSlider.js +0 -208
- package/dist/BaseSnackbar.js +0 -82
- package/dist/BaseTab.js +0 -4
- package/dist/BaseTabList.js +0 -4
- package/dist/BaseTabPanel.js +0 -4
- package/dist/BaseTabView.js +0 -4
- package/dist/BaseTextarea.js +0 -128
- package/dist/BaseToggle.js +0 -43
- package/dist/BaseTooltip.js +0 -42
- package/dist/BaseUploadFile.js +0 -4
- package/dist/CheckboxBtn.js +0 -76
- package/dist/CheckboxGroup.js +0 -4
- package/dist/DoughnutChart.js +0 -4
- package/dist/IntersectionObservable.js +0 -4
- package/dist/IntersectionObserver.js +0 -4
- package/dist/LineChart.js +0 -4
- package/dist/RadioButton.js +0 -4
- package/dist/RadioGroup.js +0 -4
- package/dist/SelectItem.js +0 -4
- package/dist/ShimmerMultiLine.js +0 -4
- package/dist/SimpleSlider.js +0 -83
- package/dist/StaticSpinner.js +0 -28
- package/dist/SwiperCarousel.js +0 -5
- package/dist/SwiperSlide.js +0 -14
- package/dist/UIKit/AccessibleSelect.vue.d.ts +0 -55
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -32
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +0 -34
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -30
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +0 -60
- package/dist/UIKit/BaseAlert.vue.d.ts +0 -26
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +0 -48
- package/dist/UIKit/BaseBadge.vue.d.ts +0 -22
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +0 -35
- package/dist/UIKit/BaseButton.vue.d.ts +0 -46
- package/dist/UIKit/BaseCard.vue.d.ts +0 -29
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +0 -47
- package/dist/UIKit/BaseDropDown.vue.d.ts +0 -81
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +0 -17
- package/dist/UIKit/BaseIcon.vue.d.ts +0 -11
- package/dist/UIKit/BaseInput.vue.d.ts +0 -68
- package/dist/UIKit/BaseModal.vue.d.ts +0 -63
- package/dist/UIKit/BasePaper.vue.d.ts +0 -2
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +0 -38
- package/dist/UIKit/BaseSnackbar.vue.d.ts +0 -24
- package/dist/UIKit/BaseToggle.vue.d.ts +0 -32
- package/dist/UIKit/BaseTooltip.vue.d.ts +0 -38
- package/dist/UIKit/BaseUploadFile.vue.d.ts +0 -42
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +0 -53
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -71
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +0 -27
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +0 -54
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +0 -21
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +0 -63
- package/dist/UIKit/StaticSpinner.vue.d.ts +0 -6
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +0 -23
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +0 -14
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +0 -24
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +0 -27
- package/dist/assets/BaseAlert.css +0 -1
- package/dist/assets/BaseBadge.css +0 -1
- package/dist/assets/BaseCard.css +0 -1
- package/dist/assets/BaseComplexToggle.css +0 -1
- package/dist/assets/BaseFloatingLabel.css +0 -1
- package/dist/assets/BaseIcon.css +0 -1
- package/dist/assets/BaseInput.css +0 -1
- package/dist/assets/BaseModal.css +0 -1
- package/dist/assets/BasePaper.css +0 -1
- package/dist/assets/BaseShimmerLoader.css +0 -1
- package/dist/assets/BaseSlider.css +0 -1
- package/dist/assets/BaseSnackbar.css +0 -1
- package/dist/assets/BaseTextarea.css +0 -1
- package/dist/assets/BaseToggle.css +0 -1
- package/dist/assets/BaseTooltip.css +0 -1
- package/dist/assets/CheckboxBtn.css +0 -1
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/assets/StaticSpinner.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/chart/DoughnutChart.vue.d.ts +0 -7
- package/dist/chart/LineChart.vue.d.ts +0 -19
- package/dist/chart/composables/useChartjsModules.d.ts +0 -10
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.QU1FSgY0.js +0 -246
- package/dist/chunks/ArrowIcon.Bq6Xr3uH.js +0 -28
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js +0 -32
- package/dist/chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DEk3SXLJ.js +0 -60
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Qp_TWYFE.js +0 -34
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.BJB5DnDs.js +0 -143
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +0 -19
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.S_XFg2zV.js +0 -202
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.DvAI34Oa.js +0 -19
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BrzeVW2_.js +0 -58
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.DHwyd5Gb.js +0 -66
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.OKB0gEpo.js +0 -137
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.a2qGyPhV.js +0 -150
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DdFMVFIO.js +0 -164
- package/dist/chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js +0 -15
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CxrS-Vq6.js +0 -43
- package/dist/chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js +0 -24
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGTsSVEG.js +0 -105
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.BL98w2D8.js +0 -71
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.B_9CFhd2.js +0 -111
- package/dist/chunks/CloseIcon.BZ4U3aiI.js +0 -38
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js +0 -27
- package/dist/chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js +0 -24
- package/dist/chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js +0 -52
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +0 -42
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.CxVJji0G.js +0 -58
- package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BNKSEicl.js +0 -62
- package/dist/chunks/SelectItem.vue_vue_type_script_setup_true_lang.jB3LVM3c.js +0 -41
- package/dist/chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CPUobRgG.js +0 -29
- package/dist/chunks/SwiperCarousel.BheiaKKw.js +0 -748
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/index.BJP9rQkU.js +0 -887
- package/dist/chunks/polyline.DjpLdMaW.js +0 -5256
- package/dist/chunks/useBreakpoints.BXk8Xcw3.js +0 -5189
- package/dist/city-640x359.jpg +0 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +0 -29
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +0 -57
- package/dist/components/carousel/SwiperSlide.vue.d.ts +0 -17
- package/dist/favicon.ico +0 -0
- package/dist/useChartjsModules.js +0 -48
- package/dist/useFloatingLabel.js +0 -33
- package/dist/useValidator.js +0 -8
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: SelectItem
|
|
3
|
+
status: primitive
|
|
4
|
+
category: Selection
|
|
5
|
+
summary: List row (`<li>`) with an active/highlighted state, for building option lists inside BaseDropDown.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseSelect/SelectItem
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# SelectItem
|
|
11
|
+
|
|
12
|
+
> **Primitive.** A low-level building block. Prefer a `preferred` component; use primitives only to compose something that doesn't exist yet.
|
|
13
|
+
|
|
14
|
+
List row (`<li>`) with an active/highlighted state, for building option lists inside BaseDropDown.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import SelectItem from "@wikicasa-dev/components/UIKit/BaseSelect/SelectItem";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
A building block for the panel of a `BaseDropDown`: it renders an `<li>` that highlights when `active` and moves keyboard focus onto itself, so arrow-key navigation is visible. `ClearableAutocomplete` (and the legacy `BaseAutocomplete`) use it internally. If you just need a select field use `AccessibleSelect`; use `SelectItem` only when composing a custom menu or list.
|
|
21
|
+
|
|
22
|
+
Content: the default slot (slot prop `itemIdx`), or the `label` prop (HTML allowed) if no slot is given. `click` and `mouseover` emit the item's `idx`.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import BaseDropDown from "@wikicasa-dev/components/UIKit/BaseDropDown";
|
|
29
|
+
import SelectItem from "@wikicasa-dev/components/UIKit/BaseSelect/SelectItem";
|
|
30
|
+
|
|
31
|
+
const languages = [
|
|
32
|
+
{ code: "it", label: "Italiano" },
|
|
33
|
+
{ code: "en", label: "English" },
|
|
34
|
+
];
|
|
35
|
+
const changeLanguage = (code: string) => console.log("lang", code);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<BaseDropDown btn-label="Italiano" with-arrow-icon direction="up" dropdown-element="ul">
|
|
40
|
+
<template #default="{ activeIdx, setActiveIdx, toggleDropdown }">
|
|
41
|
+
<SelectItem
|
|
42
|
+
v-for="(lang, idx) in languages"
|
|
43
|
+
:key="lang.code"
|
|
44
|
+
:idx="idx"
|
|
45
|
+
:label="lang.label"
|
|
46
|
+
:active="activeIdx === idx"
|
|
47
|
+
@mouseover="setActiveIdx"
|
|
48
|
+
@click="changeLanguage(lang.code); toggleDropdown()"
|
|
49
|
+
@keydown.enter="changeLanguage(lang.code)"
|
|
50
|
+
/>
|
|
51
|
+
</template>
|
|
52
|
+
</BaseDropDown>
|
|
53
|
+
</template>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Do / Don't
|
|
57
|
+
|
|
58
|
+
- Do render it as a direct child of a `ul`/`ol` (`dropdown-element="ul"` on `BaseDropDown`).
|
|
59
|
+
- Do pass `idx` and bind `active` to the dropdown's `activeIdx`, updating it on `mouseover`.
|
|
60
|
+
- Do set `:focus-on-active="false"` when `active` is driven only by the pointer (e.g. next to a text input on mobile): focusing the item would steal focus and close the soft keyboard.
|
|
61
|
+
- Don't use it outside a list; it is an `<li>`.
|
|
62
|
+
|
|
63
|
+
## Styling hooks
|
|
64
|
+
|
|
65
|
+
- Active rows get the class `active`, `data-active="true"` and a light (`w-cultured`) background.
|
|
66
|
+
- `class` is applied to the `<li>`; use it for padding, radius and cursor.
|
|
67
|
+
|
|
68
|
+
## API
|
|
69
|
+
|
|
70
|
+
_Generated from the component's types. Do not edit by hand._
|
|
71
|
+
|
|
72
|
+
### Props
|
|
73
|
+
|
|
74
|
+
| Name | Type | Default | Required | Description |
|
|
75
|
+
| --- | --- | --- | --- | --- |
|
|
76
|
+
| `label` | `string` | `""` | | |
|
|
77
|
+
| `active` | `boolean` | `false` | | |
|
|
78
|
+
| `idx` | `number` | `-1` | | |
|
|
79
|
+
| `focusOnActive` | `boolean` | `true` | | Whether becoming active should move real DOM focus onto the item. Focus exists here to serve keyboard navigation. Consumers that drive `active` from pointer events alone (touch synthesises `mouseover` before `click`) should turn this off: focusing the item runs scroll-into-view against every scrollable ancestor and blurs whatever held focus - on mobile that dismisses the soft keyboard, and both cost a forced layout before the tap is even processed. |
|
|
80
|
+
|
|
81
|
+
### Events
|
|
82
|
+
|
|
83
|
+
| Name | Payload |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `click` | `[number]` |
|
|
86
|
+
| `mouseover` | `[number]` |
|
|
87
|
+
|
|
88
|
+
### v-model
|
|
89
|
+
|
|
90
|
+
None.
|
|
91
|
+
|
|
92
|
+
### Slots
|
|
93
|
+
|
|
94
|
+
| Name | Slot props |
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| `default` | `{ itemIdx: number; }` |
|
|
97
|
+
|
|
98
|
+
### Exposed (template ref)
|
|
99
|
+
|
|
100
|
+
None.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ShimmerMultiLine
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Loading
|
|
5
|
+
summary: Stack of BaseShimmerLoader lines, a quick skeleton for a paragraph or a card description.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/ShimmerLoader/ShimmerMultiLine
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# ShimmerMultiLine
|
|
11
|
+
|
|
12
|
+
Stack of BaseShimmerLoader lines, a quick skeleton for a paragraph or a card description.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import ShimmerMultiLine from "@wikicasa-dev/components/UIKit/ShimmerLoader/ShimmerMultiLine";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Renders `lines` skeleton bars stacked vertically (32px tall each, 8px apart, small radius), the usual stand-in for a block of text while it loads. Each line is a full-width `BaseShimmerLoader`. For a single sized block (price, image, button), use `BaseShimmerLoader` directly.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```vue
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import ShimmerMultiLine from "@wikicasa-dev/components/UIKit/ShimmerLoader/ShimmerMultiLine";
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<section class="description">
|
|
29
|
+
<h2>Descrizione dell'immobile</h2>
|
|
30
|
+
<ShimmerMultiLine :lines="4" inherit-height />
|
|
31
|
+
</section>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<style scoped>
|
|
35
|
+
.description { font-size: 16px; }
|
|
36
|
+
</style>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Do / Don't
|
|
40
|
+
|
|
41
|
+
- Do use `inherit-height` to make each line 1em tall (follows the surrounding `font-size`) instead of the default 32px, so the skeleton matches body text.
|
|
42
|
+
- Do pick `lines` to match the expected text, so the height doesn't jump when content arrives.
|
|
43
|
+
- Don't use `random-length` on server-rendered pages: it picks a random right margin (0–50%) per line on every render, which causes a hydration mismatch and lines that change length on re-render. Fine in client-only mockups.
|
|
44
|
+
- `shimmer-classes` here is applied to every line box (use it for line background, height or width), unlike on `BaseShimmerLoader` where it targets the shine.
|
|
45
|
+
- `:enabled="false"` freezes the animation on all lines.
|
|
46
|
+
|
|
47
|
+
## Styling hooks
|
|
48
|
+
|
|
49
|
+
Each line has the class `shimmer-line`; style it from a parent (e.g. `.description :deep(.shimmer-line) { … }`) or pass classes with `shimmer-classes`.
|
|
50
|
+
|
|
51
|
+
## API
|
|
52
|
+
|
|
53
|
+
_Generated from the component's types. Do not edit by hand._
|
|
54
|
+
|
|
55
|
+
### Props
|
|
56
|
+
|
|
57
|
+
| Name | Type | Default | Required | Description |
|
|
58
|
+
| --- | --- | --- | --- | --- |
|
|
59
|
+
| `lines` | `number` | `1` | | |
|
|
60
|
+
| `randomLength` | `boolean` | `false` | | |
|
|
61
|
+
| `shimmerClasses` | `ClassTypeProp` | | | |
|
|
62
|
+
| `inheritHeight` | `boolean` | `false` | | |
|
|
63
|
+
| `enabled` | `boolean` | `true` | | |
|
|
64
|
+
|
|
65
|
+
### Events
|
|
66
|
+
|
|
67
|
+
None.
|
|
68
|
+
|
|
69
|
+
### v-model
|
|
70
|
+
|
|
71
|
+
None.
|
|
72
|
+
|
|
73
|
+
### Slots
|
|
74
|
+
|
|
75
|
+
None.
|
|
76
|
+
|
|
77
|
+
### Exposed (template ref)
|
|
78
|
+
|
|
79
|
+
None.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: SimpleSlider
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Forms
|
|
5
|
+
summary: Single-thumb draggable slider bound with v-model to one number (linear or logarithmic scale).
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/Slider/SimpleSlider
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# SimpleSlider
|
|
11
|
+
|
|
12
|
+
Single-thumb draggable slider bound with v-model to one number (linear or logarithmic scale).
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import SimpleSlider from "@wikicasa-dev/components/UIKit/Slider/SimpleSlider";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/SimpleSlider`.
|
|
19
|
+
|
|
20
|
+
A minimal horizontal slider for picking one number: a 4px track, a primary-colored fill and a round 20px thumb you drag. Use it for one value such as a search radius or a budget cap. For a min–max range with number inputs, use `BaseSlider`.
|
|
21
|
+
|
|
22
|
+
The value is snapped to `step`, clamped to `min`–`max` and rounded to an integer. `logarithmic` spreads a wide range (e.g. 10.000–2.000.000 €) so small values get more room.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
import SimpleSlider from "@wikicasa-dev/components/UIKit/Slider/SimpleSlider";
|
|
30
|
+
|
|
31
|
+
const radius = ref(2000); // metres
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div class="radius">
|
|
36
|
+
<p>Cerca entro {{ radius / 1000 }} km</p>
|
|
37
|
+
<SimpleSlider v-model="radius" :min="1000" :max="5000" :step="1000" />
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Do / Don't
|
|
43
|
+
|
|
44
|
+
- Do show the current value in a visible label next to the slider; the slider shows no value itself.
|
|
45
|
+
- Do initialize the `v-model` with a value inside `min`–`max`: an out-of-range or off-step value is corrected and written back immediately.
|
|
46
|
+
- Don't use it for decimals: values are rounded to whole numbers (a `step` of 0.5 doesn't work).
|
|
47
|
+
- Don't use `logarithmic` with `min` 0 (the default); a logarithmic scale needs `min` > 0.
|
|
48
|
+
- Interaction is drag-only (mouse or touch on the thumb): clicking the track and arrow keys do nothing. If keyboard access matters, pair it with a number input bound to the same value.
|
|
49
|
+
- `id`, `class` and other attributes go on an outer wrapper `<div>`, not on the `role="slider"` element, so a `<label for>` or `aria-label` can't name the slider. The track has 20px margin above and below.
|
|
50
|
+
|
|
51
|
+
## API
|
|
52
|
+
|
|
53
|
+
_Generated from the component's types. Do not edit by hand._
|
|
54
|
+
|
|
55
|
+
### Props
|
|
56
|
+
|
|
57
|
+
| Name | Type | Default | Required | Description |
|
|
58
|
+
| --- | --- | --- | --- | --- |
|
|
59
|
+
| `min` | `number` | `0` | | |
|
|
60
|
+
| `max` | `number` | `100` | | |
|
|
61
|
+
| `step` | `number` | `1` | | |
|
|
62
|
+
| `dataCy` | `string` | | | |
|
|
63
|
+
| `logarithmic` | `boolean` | `false` | | |
|
|
64
|
+
| `modelValue` | `Optional<number>` | `0` | | |
|
|
65
|
+
|
|
66
|
+
### Events
|
|
67
|
+
|
|
68
|
+
| Name | Payload |
|
|
69
|
+
| --- | --- |
|
|
70
|
+
| `update:modelValue` | `[value: Optional<number>]` |
|
|
71
|
+
|
|
72
|
+
### v-model
|
|
73
|
+
|
|
74
|
+
- `v-model` binds `modelValue` (`Optional<number>`)
|
|
75
|
+
|
|
76
|
+
### Slots
|
|
77
|
+
|
|
78
|
+
None.
|
|
79
|
+
|
|
80
|
+
### Exposed (template ref)
|
|
81
|
+
|
|
82
|
+
None.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: StaticSpinner
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Loading
|
|
5
|
+
summary: Small rotating SVG ring (24px) for inline waits, e.g. inside a button while a request runs.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/StaticSpinner
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# StaticSpinner
|
|
11
|
+
|
|
12
|
+
Small rotating SVG ring (24px) for inline waits, e.g. inside a button while a request runs.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import StaticSpinner from "@wikicasa-dev/components/UIKit/StaticSpinner";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/StaticSpinner`.
|
|
19
|
+
|
|
20
|
+
A 24×24px spinning ring drawn as an SVG. Use it for short, local waits: inside a button after a click, next to a label that is refreshing. For placeholder content while a section loads, use `BaseShimmerLoader` / `ShimmerMultiLine` instead.
|
|
21
|
+
|
|
22
|
+
The ring is **white by default** (`stroke-color="#fff"`), meant for filled primary buttons. On a light background set `stroke-color`.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
import StaticSpinner from "@wikicasa-dev/components/UIKit/StaticSpinner";
|
|
30
|
+
|
|
31
|
+
const sending = ref(true);
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<p class="status">
|
|
36
|
+
<StaticSpinner v-if="sending" stroke-color="#2b5dff" role="status" aria-label="Invio della richiesta in corso" />
|
|
37
|
+
<span>Stiamo inviando la tua richiesta all'agenzia…</span>
|
|
38
|
+
</p>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<style scoped>
|
|
42
|
+
.status { display: flex; align-items: center; gap: 8px; }
|
|
43
|
+
</style>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Do / Don't
|
|
47
|
+
|
|
48
|
+
- Do set `stroke-color` whenever the background isn't dark or primary-colored, or the spinner is invisible.
|
|
49
|
+
- Do give it an accessible name (`role="status"` + `aria-label`, they land on the `<svg>`) when it is the only sign that something is happening.
|
|
50
|
+
- `thickness` is the stroke width in a 128-unit viewBox (default 9); raise it when you scale the spinner up.
|
|
51
|
+
- To resize it, set `width`/`height` through a class with enough specificity (or `!important`): the SVG already carries the library's 24px size classes.
|
|
52
|
+
|
|
53
|
+
## API
|
|
54
|
+
|
|
55
|
+
_Generated from the component's types. Do not edit by hand._
|
|
56
|
+
|
|
57
|
+
### Props
|
|
58
|
+
|
|
59
|
+
| Name | Type | Default | Required | Description |
|
|
60
|
+
| --- | --- | --- | --- | --- |
|
|
61
|
+
| `thickness` | `number` | `9` | | |
|
|
62
|
+
| `strokeColor` | `string` | `"#fff"` | | |
|
|
63
|
+
|
|
64
|
+
### Events
|
|
65
|
+
|
|
66
|
+
None.
|
|
67
|
+
|
|
68
|
+
### v-model
|
|
69
|
+
|
|
70
|
+
None.
|
|
71
|
+
|
|
72
|
+
### Slots
|
|
73
|
+
|
|
74
|
+
None.
|
|
75
|
+
|
|
76
|
+
### Exposed (template ref)
|
|
77
|
+
|
|
78
|
+
None.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: SwiperCarousel
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Media
|
|
5
|
+
summary: Ready-made Swiper carousel for slides or an image gallery, with optional arrows, bullets, autoplay and thumbnails.
|
|
6
|
+
dataType: Image
|
|
7
|
+
import: @wikicasa-dev/components/generic/carousel/SwiperCarousel
|
|
8
|
+
version: 3.0.0-alpha.2
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# SwiperCarousel
|
|
12
|
+
|
|
13
|
+
Ready-made Swiper carousel for slides or an image gallery, with optional arrows, bullets, autoplay and thumbnails.
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import SwiperCarousel from "@wikicasa-dev/components/generic/carousel/SwiperCarousel";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Stylesheets: `css/SwiperPaginationPrimitive`, `css/SwiperCarousel`.
|
|
20
|
+
|
|
21
|
+
Renders data shaped like `Image` from `@wikicasa-dev/types`.
|
|
22
|
+
|
|
23
|
+
The all-in-one carousel. Use it for horizontally swipeable rows of cards ("Visti di recente", agents, testimonials) or a simple photo gallery. Two ways to fill it:
|
|
24
|
+
|
|
25
|
+
- **Slots:** put `SwiperSlide` elements in the default slot, each holding any content.
|
|
26
|
+
- **Images:** pass `images` (`Image[]` from `@wikicasa-dev/types`, at least `{ src, alt }`) and leave the default slot empty; it renders one `<img>` per slide, adds `#last_slide` after them, and can add a thumbnail strip with `thumb-swiper-options`.
|
|
27
|
+
|
|
28
|
+
Behavior comes from `swiper-options` (plain [Swiper options](https://swiperjs.com/swiper-api#parameters)): `slidesPerView`, `spaceBetween`, `loop`, `breakpoints`, `navigation: true` (arrows), `pagination: true` (bullets) or `pagination: { type: "fraction" }` ("2 / 8" pill), `autoplay`, `keyboard`. Swiper loads after mount; until then the carousel is hidden (`display: none`) and the `#placeholder` slot is shown.
|
|
29
|
+
|
|
30
|
+
Need custom arrows, a deferred-loading gallery or a thumbnail strip with your own slides? Compose the primitives (see `SwiperRootPrimitive`).
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```vue
|
|
35
|
+
<script setup lang="ts">
|
|
36
|
+
import SwiperCarousel from "@wikicasa-dev/components/generic/carousel/SwiperCarousel";
|
|
37
|
+
import SwiperSlide from "@wikicasa-dev/components/generic/carousel/SwiperSlide";
|
|
38
|
+
|
|
39
|
+
const listings = [
|
|
40
|
+
{ id: 1, title: "Bilocale a Firenze", price: "€ 290.000" },
|
|
41
|
+
{ id: 2, title: "Trilocale a Bologna", price: "€ 340.000" },
|
|
42
|
+
{ id: 3, title: "Villa a Lucca", price: "€ 720.000" },
|
|
43
|
+
{ id: 4, title: "Loft a Milano", price: "€ 510.000" },
|
|
44
|
+
];
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<section class="recent">
|
|
49
|
+
<SwiperCarousel
|
|
50
|
+
id="recently-seen"
|
|
51
|
+
:swiper-options="{ slidesPerView: 1.2, spaceBetween: 16, pagination: true, breakpoints: { 768: { slidesPerView: 3 } } }"
|
|
52
|
+
>
|
|
53
|
+
<SwiperSlide v-for="l in listings" :key="l.id">
|
|
54
|
+
<article class="recent__card"><h3>{{ l.title }}</h3><p>{{ l.price }}</p></article>
|
|
55
|
+
</SwiperSlide>
|
|
56
|
+
<template #placeholder>
|
|
57
|
+
<div style="height: 180px" />
|
|
58
|
+
</template>
|
|
59
|
+
</SwiperCarousel>
|
|
60
|
+
</section>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<style scoped>
|
|
64
|
+
.recent :deep(.swiper-wrapper) { padding-bottom: 32px; }
|
|
65
|
+
.recent :deep(.swiper-pagination-bullet-active) { --swiper-pagination-color: rgb(var(--uikit-color-w-primary)); }
|
|
66
|
+
.recent__card { width: 100%; padding: 16px; border-radius: 20px; background: #fff; }
|
|
67
|
+
</style>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Do / Don't
|
|
71
|
+
|
|
72
|
+
- Don't put `class` on `SwiperCarousel`: it is ignored. Use these kebab-case attributes instead (camelCase is ignored too): `root-classes` (outer wrapper), `swiper-classes` (the `.swiper` element), `swiper-wrapper-classes`, `swiper-pagination-classes`; in images mode also `swiper-slide-classes`, `slide-img-classes`, `thumb-swiper-classes`, `thumb-img-wrapper-classes`, `thumb-img-classes`.
|
|
73
|
+
- Scoped styles of your component don't reach the carousel's internal elements, even through the `*-classes` attributes: pass global classes there, or style from a wrapper you own with `:deep()` as above. Slide content you write in the slot is yours and scoped normally.
|
|
74
|
+
- Do fill `#placeholder` with a box of the carousel's final height, or the page jumps when it appears.
|
|
75
|
+
- Do treat `swiper-options` as fixed: it's read once. To change slides per view later, call the exposed `updateSlidesPerView(n)`; to jump, `moveTo(index)`; for anything else the exposed `swiper` is the Swiper instance.
|
|
76
|
+
- Do key slides by a stable id, not the index.
|
|
77
|
+
- Don't put `SwiperSlideImagePrimitive` with `lazy` in it: its images never load here. Use plain `<img>` or the primitives.
|
|
78
|
+
- Active pagination bullets are white by default: on light backgrounds override `--swiper-pagination-color` as above.
|
|
79
|
+
|
|
80
|
+
## Styling hooks
|
|
81
|
+
|
|
82
|
+
Swiper's own CSS variables, set on an ancestor or on the elements (use `:deep()` from scoped styles, Swiper adds these classes at runtime): `--swiper-pagination-color` (active bullet), `--swiper-pagination-bullet-inactive-color`, `--swiper-pagination-bullet-inactive-opacity`, `--swiper-pagination-bullet-width` / `-height`, `--swiper-pagination-bottom`, `--swiper-navigation-color`, `--swiper-navigation-size`, `--swiper-navigation-sides-offset`. Thumbnail of the active slide: `.swiper-slide-thumb-active`.
|
|
83
|
+
|
|
84
|
+
## API
|
|
85
|
+
|
|
86
|
+
_Generated from the component's types. Do not edit by hand._
|
|
87
|
+
|
|
88
|
+
### Props
|
|
89
|
+
|
|
90
|
+
| Name | Type | Default | Required | Description |
|
|
91
|
+
| --- | --- | --- | --- | --- |
|
|
92
|
+
| `id` | `string` | | | |
|
|
93
|
+
| `swiperOptions` | `SwiperOptions` | | yes | |
|
|
94
|
+
| `thumbSwiperOptions` | `SwiperOptions` | | | |
|
|
95
|
+
| `lazyLoadImages` | `boolean` | `true` | | |
|
|
96
|
+
| `backgroundImage` | `boolean` | `false` | | |
|
|
97
|
+
| `images` | `Image[]` | `[]` | | |
|
|
98
|
+
| `artDirection` | `Record<string, { mq: string; width: string; }>` | | | |
|
|
99
|
+
| `shiftFirstImage` | `boolean` | `false` | | |
|
|
100
|
+
|
|
101
|
+
### Events
|
|
102
|
+
|
|
103
|
+
| Name | Payload |
|
|
104
|
+
| --- | --- |
|
|
105
|
+
| `click` | |
|
|
106
|
+
| `moved` | `[{ activeIndex: number; }]` |
|
|
107
|
+
| `firstSlideLoaded` | |
|
|
108
|
+
| `init` | |
|
|
109
|
+
|
|
110
|
+
### v-model
|
|
111
|
+
|
|
112
|
+
None.
|
|
113
|
+
|
|
114
|
+
### Slots
|
|
115
|
+
|
|
116
|
+
| Name | Slot props |
|
|
117
|
+
| --- | --- |
|
|
118
|
+
| `default` | |
|
|
119
|
+
| `last_slide` | |
|
|
120
|
+
| `placeholder` | |
|
|
121
|
+
|
|
122
|
+
### Exposed (template ref)
|
|
123
|
+
|
|
124
|
+
| Name | Type |
|
|
125
|
+
| --- | --- |
|
|
126
|
+
| `swiper` | `Nullable<Swiper>` |
|
|
127
|
+
| `moveTo` | `(index: number, speed?: number, runCallbacks?: boolean) => void` |
|
|
128
|
+
| `updateSlidesPerView` | `(value: number) => void` |
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: SwiperNavigationPrimitive
|
|
3
|
+
status: primitive
|
|
4
|
+
category: Media
|
|
5
|
+
summary: Swiper prev/next arrows for a SwiperRootPrimitive carousel.
|
|
6
|
+
import: @wikicasa-dev/components/generic/carousel/Primitive/SwiperNavigationPrimitive
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# SwiperNavigationPrimitive
|
|
11
|
+
|
|
12
|
+
> **Primitive.** A low-level building block. Prefer a `preferred` component; use primitives only to compose something that doesn't exist yet.
|
|
13
|
+
|
|
14
|
+
Swiper prev/next arrows for a SwiperRootPrimitive carousel.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import SwiperNavigationPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperNavigationPrimitive";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Stylesheets: `css/SwiperNavigationPrimitive`.
|
|
21
|
+
|
|
22
|
+
Adds Swiper's prev/next arrow buttons (`.swiper-button-prev` / `.swiper-button-next`, vertically centered on the sides) to a primitive carousel. Place it inside `SwiperRootPrimitive`, after `SwiperPrimitive`. `options` takes Swiper [navigation options](https://swiperjs.com/swiper-api#navigation) or `true` (default). See `SwiperRootPrimitive` for the full composition.
|
|
23
|
+
|
|
24
|
+
For arrows of your own design, skip this primitive and call `slidePrev()` / `slideNext()` on the Swiper instance the root gives you (`@init` or the exposed `swiper`).
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```vue
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import SwiperRootPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperRootPrimitive";
|
|
31
|
+
import SwiperPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperPrimitive";
|
|
32
|
+
import SwiperSlide from "@wikicasa-dev/components/generic/carousel/SwiperSlide";
|
|
33
|
+
import SwiperNavigationPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperNavigationPrimitive";
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<div class="tour">
|
|
38
|
+
<SwiperRootPrimitive :swiper-options="{ slidesPerView: 1, rewind: true }">
|
|
39
|
+
<SwiperPrimitive>
|
|
40
|
+
<SwiperSlide v-for="room in ['Cucina', 'Soggiorno', 'Camera']" :key="room">{{ room }}</SwiperSlide>
|
|
41
|
+
</SwiperPrimitive>
|
|
42
|
+
<SwiperNavigationPrimitive />
|
|
43
|
+
</SwiperRootPrimitive>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<style scoped>
|
|
48
|
+
.tour { --swiper-navigation-color: rgb(var(--uikit-color-w-black)); --swiper-navigation-size: 30px; }
|
|
49
|
+
</style>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Do / Don't
|
|
53
|
+
|
|
54
|
+
- Do render it unconditionally from the start; it registers with the root while the carousel is created. To hide arrows on small screens use Swiper `breakpoints` with `navigation: { enabled: false }` in the root's `swiper-options`.
|
|
55
|
+
- Don't put `class` on it: it renders two elements, so attributes are dropped. Style the arrows from an ancestor.
|
|
56
|
+
|
|
57
|
+
## Styling hooks
|
|
58
|
+
|
|
59
|
+
`--swiper-navigation-color`, `--swiper-navigation-size` (44px), `--swiper-navigation-sides-offset`; classes `.swiper-button-prev`, `.swiper-button-next`, `.swiper-button-disabled`.
|
|
60
|
+
|
|
61
|
+
## API
|
|
62
|
+
|
|
63
|
+
_Generated from the component's types. Do not edit by hand._
|
|
64
|
+
|
|
65
|
+
### Props
|
|
66
|
+
|
|
67
|
+
| Name | Type | Default | Required | Description |
|
|
68
|
+
| --- | --- | --- | --- | --- |
|
|
69
|
+
| `options` | `SwiperNavigationPrimitiveProps` | `true` | | |
|
|
70
|
+
|
|
71
|
+
### Events
|
|
72
|
+
|
|
73
|
+
None.
|
|
74
|
+
|
|
75
|
+
### v-model
|
|
76
|
+
|
|
77
|
+
None.
|
|
78
|
+
|
|
79
|
+
### Slots
|
|
80
|
+
|
|
81
|
+
None.
|
|
82
|
+
|
|
83
|
+
### Exposed (template ref)
|
|
84
|
+
|
|
85
|
+
None.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: SwiperPaginationPrimitive
|
|
3
|
+
status: primitive
|
|
4
|
+
category: Media
|
|
5
|
+
summary: Pagination (bullets or "2 / 8" fraction) for a SwiperRootPrimitive carousel.
|
|
6
|
+
import: @wikicasa-dev/components/generic/carousel/Primitive/SwiperPaginationPrimitive
|
|
7
|
+
version: 3.0.0-alpha.2
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# SwiperPaginationPrimitive
|
|
11
|
+
|
|
12
|
+
> **Primitive.** A low-level building block. Prefer a `preferred` component; use primitives only to compose something that doesn't exist yet.
|
|
13
|
+
|
|
14
|
+
Pagination (bullets or "2 / 8" fraction) for a SwiperRootPrimitive carousel.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import SwiperPaginationPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperPaginationPrimitive";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Stylesheets: `css/SwiperPaginationPrimitive`.
|
|
21
|
+
|
|
22
|
+
Adds Swiper pagination to a primitive carousel. Place it inside `SwiperRootPrimitive`, after `SwiperPrimitive`. `options` takes Swiper [pagination options](https://swiperjs.com/swiper-api#pagination) or `true` (default: bullets). `{ type: "fraction" }` renders a bordered white pill with "current / total"; `{ dynamicBullets: true }` keeps many bullets compact. See `SwiperRootPrimitive` for the full composition.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import SwiperRootPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperRootPrimitive";
|
|
29
|
+
import SwiperPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperPrimitive";
|
|
30
|
+
import SwiperSlide from "@wikicasa-dev/components/generic/carousel/SwiperSlide";
|
|
31
|
+
import SwiperPaginationPrimitive from "@wikicasa-dev/components/generic/carousel/Primitive/SwiperPaginationPrimitive";
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<SwiperRootPrimitive class="photos">
|
|
36
|
+
<SwiperPrimitive>
|
|
37
|
+
<SwiperSlide v-for="n in 5" :key="n"><img :src="`/img/casale-${n}.jpg`" :alt="`Casale in Toscana, foto ${n}`" /></SwiperSlide>
|
|
38
|
+
</SwiperPrimitive>
|
|
39
|
+
<SwiperPaginationPrimitive :options="{ dynamicBullets: true }" />
|
|
40
|
+
</SwiperRootPrimitive>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<style scoped>
|
|
44
|
+
.photos :deep(.swiper-pagination-bullet-active) { --swiper-pagination-color: rgb(var(--uikit-color-w-primary)); }
|
|
45
|
+
</style>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Do / Don't
|
|
49
|
+
|
|
50
|
+
- Do render it unconditionally from the start; it registers with the root while the carousel is created.
|
|
51
|
+
- The active bullet is white by default (made for photos). On light backgrounds override `--swiper-pagination-color`.
|
|
52
|
+
- `class` lands on the `.swiper-pagination` element; e.g. set `--swiper-pagination-bottom` there.
|
|
53
|
+
|
|
54
|
+
## Styling hooks
|
|
55
|
+
|
|
56
|
+
`--swiper-pagination-color`, `--swiper-pagination-bullet-inactive-color`, `--swiper-pagination-bullet-inactive-opacity`, `--swiper-pagination-bullet-width` / `-height`, `--swiper-pagination-bottom`.
|
|
57
|
+
|
|
58
|
+
## API
|
|
59
|
+
|
|
60
|
+
_Generated from the component's types. Do not edit by hand._
|
|
61
|
+
|
|
62
|
+
### Props
|
|
63
|
+
|
|
64
|
+
| Name | Type | Default | Required | Description |
|
|
65
|
+
| --- | --- | --- | --- | --- |
|
|
66
|
+
| `options` | `SwiperPaginationPrimitiveProps` | `true` | | |
|
|
67
|
+
|
|
68
|
+
### Events
|
|
69
|
+
|
|
70
|
+
None.
|
|
71
|
+
|
|
72
|
+
### v-model
|
|
73
|
+
|
|
74
|
+
None.
|
|
75
|
+
|
|
76
|
+
### Slots
|
|
77
|
+
|
|
78
|
+
None.
|
|
79
|
+
|
|
80
|
+
### Exposed (template ref)
|
|
81
|
+
|
|
82
|
+
None.
|