@wikicasa-dev/components 3.0.0-alpha.0 → 3.0.0-alpha.3
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 +45 -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,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseModal
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Overlays
|
|
5
|
+
summary: Dialog over a dimmed backdrop: centered card on desktop, bottom sheet on mobile, with header/body/footer slots.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseModal
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseModal
|
|
11
|
+
|
|
12
|
+
Dialog over a dimmed backdrop: centered card on desktop, bottom sheet on mobile, with header/body/footer slots.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseModal from "@wikicasa-dev/components/UIKit/BaseModal";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseModal`.
|
|
19
|
+
|
|
20
|
+
Use it for focused tasks that interrupt the page: confirmations ("Eliminare questo annuncio?"), short forms (contact the agency, login), filter pickers, sort options. On screens below 576px it becomes a full-width sheet sliding up from the bottom; from 576px up it is a card slid down from the top (or vertically centered with `centered`). It locks page scroll while open and closes on Escape, on the X button and on backdrop click (disable with `:close-on-click-out="false"`).
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```vue
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
import BaseModal from "@wikicasa-dev/components/UIKit/BaseModal";
|
|
27
|
+
import BaseButton from "@wikicasa-dev/components/UIKit/BaseButton";
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
|
|
30
|
+
const showDelete = ref(false);
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<BaseButton btn-class="uikit-btn-w-danger" type="button" @click="showDelete = true">
|
|
35
|
+
Elimina annuncio
|
|
36
|
+
</BaseButton>
|
|
37
|
+
|
|
38
|
+
<BaseModal
|
|
39
|
+
id="delete-listing-modal"
|
|
40
|
+
v-model:show-modal="showDelete"
|
|
41
|
+
size="modal-sm"
|
|
42
|
+
header-title="Conferma eliminazione"
|
|
43
|
+
custom-modal-footer-classes="modal-actions"
|
|
44
|
+
>
|
|
45
|
+
<template #body>
|
|
46
|
+
<p>Vuoi eliminare il trilocale in Via Garibaldi 12, Torino? L'operazione non è reversibile.</p>
|
|
47
|
+
</template>
|
|
48
|
+
<template #footer="{ closeModal }">
|
|
49
|
+
<BaseButton style="flex: 1" btn-class="uikit-btn-w-primary" outlined type="button" @click="closeModal">
|
|
50
|
+
Annulla
|
|
51
|
+
</BaseButton>
|
|
52
|
+
<BaseButton style="flex: 1" btn-class="uikit-btn-w-danger" type="button" @click="closeModal">
|
|
53
|
+
Elimina
|
|
54
|
+
</BaseButton>
|
|
55
|
+
</template>
|
|
56
|
+
</BaseModal>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<style>
|
|
60
|
+
.modal-actions { display: flex; gap: 20px; }
|
|
61
|
+
</style>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Do / Don't
|
|
65
|
+
|
|
66
|
+
- Bind `v-model:show-modal`. Its default is `true`: a `BaseModal` without it opens as soon as it is mounted.
|
|
67
|
+
- Content goes in the named `body` slot, not the default slot (the default slot is not rendered). `header`, `body` and `footer` slots all receive `closeModal()`.
|
|
68
|
+
- The footer is sticky at the bottom and only rendered if you fill the `footer` slot. Put the actions there.
|
|
69
|
+
- Title: use `headerTitle` for plain text (it is inserted as HTML, so never pass user-provided text) or the `header` slot for custom markup. The X button stays on the top right unless `:with-close-icon="false"`.
|
|
70
|
+
- Widths: `modal-sm` 496px, `modal-md` 592px (default), `modal-lg` 670px, `modal-xxl` up to 1500px. From 576px up, sm/md/lg cap the height at 690px. `fullHeight` sets the height to 95% of the screen (within that cap): good for long lists and maps.
|
|
71
|
+
- Give every modal a unique `id`; the default `base-bt-modal` is shared by all instances.
|
|
72
|
+
- Use the `closed` / `opened` events (after the 250ms animation) to unmount the modal or move focus.
|
|
73
|
+
- `autoClose` (ms) closes it automatically after opening: only for pure confirmations.
|
|
74
|
+
|
|
75
|
+
## Styling hooks
|
|
76
|
+
|
|
77
|
+
Class props for each region: `customBackdropClasses`, `customModalDialogClasses`, `customModalHeaderClasses`, `customModalBodyClasses`, `customModalFooterClasses`, `titleClasses`, `closeIconBtnClasses`, and `closeIcon` (`{ size, classes }`).
|
|
78
|
+
CSS custom properties on `.uikit-modal-dialog`: `--modal-max-height`, `--modal-width-sm`, `--modal-width-md`, `--modal-width-lg`, `--modal-max-width`.
|
|
79
|
+
|
|
80
|
+
## API
|
|
81
|
+
|
|
82
|
+
_Generated from the component's types. Do not edit by hand._
|
|
83
|
+
|
|
84
|
+
### Props
|
|
85
|
+
|
|
86
|
+
| Name | Type | Default | Required | Description |
|
|
87
|
+
| --- | --- | --- | --- | --- |
|
|
88
|
+
| `id` | `string` | `"base-bt-modal"` | | |
|
|
89
|
+
| `size` | `"modal-sm" \| "modal-md" \| "modal-lg" \| "modal-xxl" \| "modal-full"` | `"modal-md"` | | |
|
|
90
|
+
| `customBackdropClasses` | `ClassTypeProp` | | | |
|
|
91
|
+
| `customModalDialogClasses` | `ClassTypeProp` | | | |
|
|
92
|
+
| `customModalHeaderClasses` | `ClassTypeProp` | | | |
|
|
93
|
+
| `customModalBodyClasses` | `ClassTypeProp` | | | |
|
|
94
|
+
| `customModalFooterClasses` | `ClassTypeProp` | | | |
|
|
95
|
+
| `closeIcon` | `Partial<{ size?: number \| undefined; classes?: ClassTypeProp; }>` | | | |
|
|
96
|
+
| `withCloseIcon` | `boolean` | `true` | | |
|
|
97
|
+
| `headerTitle` | `string` | `""` | | |
|
|
98
|
+
| `autoClose` | `number` | | | |
|
|
99
|
+
| `fullHeight` | `boolean` | `false` | | |
|
|
100
|
+
| `closeOnClickOut` | `boolean` | `true` | | |
|
|
101
|
+
| `centered` | `boolean` | `false` | | If true, the modal will be centered in desktop mode |
|
|
102
|
+
| `dataCy` | `string` | | | |
|
|
103
|
+
| `closeIconBtnClasses` | `ClassTypeProp` | | | |
|
|
104
|
+
| `titleClasses` | `ClassTypeProp` | | | |
|
|
105
|
+
| `showModal` | `boolean` | `true` | | |
|
|
106
|
+
|
|
107
|
+
### Events
|
|
108
|
+
|
|
109
|
+
| Name | Payload |
|
|
110
|
+
| --- | --- |
|
|
111
|
+
| `closed` | |
|
|
112
|
+
| `opened` | |
|
|
113
|
+
| `update:showModal` | `[value: boolean]` |
|
|
114
|
+
| `dialogClick` | `[MouseEvent]` |
|
|
115
|
+
|
|
116
|
+
### v-model
|
|
117
|
+
|
|
118
|
+
- `v-model:showModal` (`boolean`)
|
|
119
|
+
|
|
120
|
+
### Slots
|
|
121
|
+
|
|
122
|
+
| Name | Slot props |
|
|
123
|
+
| --- | --- |
|
|
124
|
+
| `header` | `{ closeModal: () => void; }` |
|
|
125
|
+
| `body` | `{ closeModal: () => void; }` |
|
|
126
|
+
| `footer` | `{ closeModal: () => void; }` |
|
|
127
|
+
| `fixed-bottom` | |
|
|
128
|
+
|
|
129
|
+
### Exposed (template ref)
|
|
130
|
+
|
|
131
|
+
None.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BasePagination
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Navigation
|
|
5
|
+
summary: Page navigator for result lists: prev/next arrows, first/last page, siblings and ellipses, or a compact prev/next form.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BasePagination
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BasePagination
|
|
11
|
+
|
|
12
|
+
Page navigator for result lists: prev/next arrows, first/last page, siblings and ellipses, or a compact prev/next form.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BasePagination from "@wikicasa-dev/components/UIKit/BasePagination";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Use it under paginated lists: search results, agencies, favorites, messages. It computes the pages from `count` (total items) and `limit` (items per page, default 25) and tracks the current page with `v-model:page-number` (1-based, default 1).
|
|
19
|
+
|
|
20
|
+
Two modes:
|
|
21
|
+
- **Full** (default): ‹ 1 … 4 5 [6] 7 8 … 40 ›. `siblings` (default 3) sets how many numbers surround the current one.
|
|
22
|
+
- **Compact** (`small`): only ‹ prev, current page, next ›, with optional `prevLabel` / `nextLabel` text. Use it on mobile.
|
|
23
|
+
|
|
24
|
+
Without `baseUrl` the items are clickable `<span>`s that only update the model (fine for client-side lists and mockups). With `baseUrl` every item is a real link, which is what SEO pages need.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```vue
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import BasePagination from "@wikicasa-dev/components/UIKit/BasePagination";
|
|
31
|
+
import { ref } from "vue";
|
|
32
|
+
|
|
33
|
+
const page = ref(1);
|
|
34
|
+
const totalListings = 1234; // static mock
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<template>
|
|
38
|
+
<BasePagination
|
|
39
|
+
v-model:page-number="page"
|
|
40
|
+
:count="totalListings"
|
|
41
|
+
:limit="25"
|
|
42
|
+
style="display: flex; justify-content: center; margin-top: 30px"
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
<BasePagination
|
|
46
|
+
v-model:page-number="page"
|
|
47
|
+
:count="totalListings"
|
|
48
|
+
small
|
|
49
|
+
prev-label="Precedente"
|
|
50
|
+
next-label="Successiva"
|
|
51
|
+
style="display: flex; justify-content: center"
|
|
52
|
+
/>
|
|
53
|
+
</template>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Do / Don't
|
|
57
|
+
|
|
58
|
+
- Render it only when there is more than one page (`v-if="count > limit"`); with `count` 0 it renders an empty `<nav>`.
|
|
59
|
+
- `baseUrl` must be an absolute URL (`https://www.wikicasa.it/vendita-case/milano/`). A relative path fails to parse and no `href` is produced. The page goes in the `p` query parameter (change it with `pageQueryParameter`); page 1 drops the parameter.
|
|
60
|
+
- In a router app pass the link component as `linkTag` (it receives both `href` and `to`) and extra link attributes via `linkProps`.
|
|
61
|
+
- `formatter` formats the displayed numbers (e.g. `1.234` with Italian separators); it doesn't change the values.
|
|
62
|
+
- `additionalCount` adds extra items to `count` when computing the number of pages.
|
|
63
|
+
|
|
64
|
+
## Styling hooks
|
|
65
|
+
|
|
66
|
+
`arrowColor` sets the arrow color (hex string, default `#2B5DFF`). Alignment and spacing go in your own `class`/`style` on the component root (`<nav>`).
|
|
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
|
+
| `count` | `number` | `0` | | |
|
|
77
|
+
| `limit` | `number` | `25` | | |
|
|
78
|
+
| `siblings` | `number` | `3` | | |
|
|
79
|
+
| `additionalCount` | `number` | `0` | | |
|
|
80
|
+
| `arrowColor` | `string` | `"#2B5DFF"` | | |
|
|
81
|
+
| `small` | `boolean` | `false` | | |
|
|
82
|
+
| `prevLabel` | `string` | `""` | | |
|
|
83
|
+
| `nextLabel` | `string` | `""` | | |
|
|
84
|
+
| `prevDataCy` | `string` | | | |
|
|
85
|
+
| `nextDataCy` | `string` | | | |
|
|
86
|
+
| `linkProps` | `Record<string, unknown>` | | | |
|
|
87
|
+
| `linkTag` | `"a" \| Component` | `"a"` | | |
|
|
88
|
+
| `baseUrl` | `string` | | | |
|
|
89
|
+
| `pageQueryParameter` | `string` | `"p"` | | |
|
|
90
|
+
| `formatter` | `((value?: Nullable<number> \| undefined) => string)` | | | |
|
|
91
|
+
| `pageNumber` | `Optional<number>` | `1` | | |
|
|
92
|
+
|
|
93
|
+
### Events
|
|
94
|
+
|
|
95
|
+
| Name | Payload |
|
|
96
|
+
| --- | --- |
|
|
97
|
+
| `update:pageNumber` | `[value: Optional<number>]` |
|
|
98
|
+
|
|
99
|
+
### v-model
|
|
100
|
+
|
|
101
|
+
- `v-model:pageNumber` (`Optional<number>`)
|
|
102
|
+
|
|
103
|
+
### Slots
|
|
104
|
+
|
|
105
|
+
None.
|
|
106
|
+
|
|
107
|
+
### Exposed (template ref)
|
|
108
|
+
|
|
109
|
+
None.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseShimmerLoader
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Loading
|
|
5
|
+
summary: Animated skeleton block (lavender box with a moving shine) that stands in for content while it loads.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/ShimmerLoader/BaseShimmerLoader
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseShimmerLoader
|
|
11
|
+
|
|
12
|
+
Animated skeleton block (lavender box with a moving shine) that stands in for content while it loads.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseShimmerLoader from "@wikicasa-dev/components/UIKit/ShimmerLoader/BaseShimmerLoader";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseShimmerLoader`.
|
|
19
|
+
|
|
20
|
+
A skeleton placeholder: a lavender block with a light sweep animated across it. It has no size of its own, so you give it the size and radius of the thing it replaces (a price, a title line, an image). Render it with `v-if` while loading and swap in the real content with `v-else`.
|
|
21
|
+
|
|
22
|
+
For several stacked text lines use `ShimmerMultiLine`. For a spinner inside a button or small inline wait, use `StaticSpinner`.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
import BaseShimmerLoader from "@wikicasa-dev/components/UIKit/ShimmerLoader/BaseShimmerLoader";
|
|
30
|
+
|
|
31
|
+
const loading = ref(true);
|
|
32
|
+
const price = "€ 245.000";
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<div class="valuation">
|
|
37
|
+
<span>Prezzo stimato</span>
|
|
38
|
+
<BaseShimmerLoader v-if="loading" class="price-skeleton" />
|
|
39
|
+
<strong v-else>{{ price }}</strong>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<style scoped>
|
|
44
|
+
.price-skeleton { width: 120px; height: 30px; border-radius: 8px; }
|
|
45
|
+
</style>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Do / Don't
|
|
49
|
+
|
|
50
|
+
- Do always size it (`width`, `height`) and round it (`border-radius`) through `class` or `style`; without a height it collapses to nothing.
|
|
51
|
+
- Do match the size of the final content so nothing jumps when it arrives. For an inline value inside text, add `display: inline-block`.
|
|
52
|
+
- Do set `:enabled="false"` to freeze the shine (e.g. many skeletons off screen, or reduced-motion).
|
|
53
|
+
- Don't use it as a translucent overlay on top of real content: the block is opaque. Default slot content is rendered inside the block, under the shine.
|
|
54
|
+
- `shimmer-classes` styles the moving shine layer only, not the block.
|
|
55
|
+
|
|
56
|
+
## Styling hooks
|
|
57
|
+
|
|
58
|
+
- The block's lavender background is a library utility class on the root; to recolor it, use a selector stronger than one class or `!important` (e.g. `background-color: rgb(var(--uikit-color-w-cultured)) !important`).
|
|
59
|
+
- The shine layer has the class `shimmer` (and `data-enabled` while animating).
|
|
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
|
+
| `shimmerClasses` | `ClassTypeProp` | `""` | | |
|
|
70
|
+
| `enabled` | `boolean` | `true` | | |
|
|
71
|
+
|
|
72
|
+
### Events
|
|
73
|
+
|
|
74
|
+
None.
|
|
75
|
+
|
|
76
|
+
### v-model
|
|
77
|
+
|
|
78
|
+
None.
|
|
79
|
+
|
|
80
|
+
### Slots
|
|
81
|
+
|
|
82
|
+
| Name | Slot props |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| `default` | |
|
|
85
|
+
|
|
86
|
+
### Exposed (template ref)
|
|
87
|
+
|
|
88
|
+
None.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseSlider
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Forms
|
|
5
|
+
summary: Dual-thumb range slider with linked Min/Max number fields, linear or logarithmic.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseSlider
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseSlider
|
|
11
|
+
|
|
12
|
+
Dual-thumb range slider with linked Min/Max number fields, linear or logarithmic.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseSlider from "@wikicasa-dev/components/UIKit/BaseSlider";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseSlider`.
|
|
19
|
+
|
|
20
|
+
Use to pick a numeric range: price from/to, surface from/to (m²). It renders two thumbs on one track plus two `BaseInput` fields labelled "Min" and "Max" that stay in sync with the thumbs. For a single value use `SimpleSlider`.
|
|
21
|
+
|
|
22
|
+
Bind the range with `v-model:min-value` and `v-model:max-value`. `min` / `max` set the limits (default 0–100) and the native `step` attribute is forwarded to both thumbs. Use `type="logarithmic"` for wide ranges such as prices, so low values get more of the track.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { ref } from "vue";
|
|
29
|
+
import BaseSlider from "@wikicasa-dev/components/UIKit/BaseSlider";
|
|
30
|
+
|
|
31
|
+
const surfaceFrom = ref<number>();
|
|
32
|
+
const surfaceTo = ref<number>();
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<BaseSlider
|
|
37
|
+
v-model:min-value="surfaceFrom"
|
|
38
|
+
v-model:max-value="surfaceTo"
|
|
39
|
+
:min="20"
|
|
40
|
+
:max="500"
|
|
41
|
+
step="5"
|
|
42
|
+
/>
|
|
43
|
+
<p>Superficie: {{ surfaceFrom }}–{{ surfaceTo }} m²</p>
|
|
44
|
+
</template>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Do / Don't
|
|
48
|
+
|
|
49
|
+
- Do expect it to start at the full range: on mount it sets the models to `min` and `max`, overwriting any initial value you bound.
|
|
50
|
+
- Do put your own heading or legend above it ("Superficie (m²)"); the thumbs have no accessible label and the fields are always labelled "Min" / "Max".
|
|
51
|
+
- Don't use it for a single value; use `SimpleSlider`.
|
|
52
|
+
|
|
53
|
+
## Styling hooks
|
|
54
|
+
|
|
55
|
+
None. Track colors are fixed (primary for the selected range, light blue for the rest); size and spacing come from the parent container via `class`.
|
|
56
|
+
|
|
57
|
+
## API
|
|
58
|
+
|
|
59
|
+
_Generated from the component's types. Do not edit by hand._
|
|
60
|
+
|
|
61
|
+
### Props
|
|
62
|
+
|
|
63
|
+
| Name | Type | Default | Required | Description |
|
|
64
|
+
| --- | --- | --- | --- | --- |
|
|
65
|
+
| `type` | `"linear" \| "logarithmic"` | `"linear"` | | |
|
|
66
|
+
| `min` | `number` | `0` | | |
|
|
67
|
+
| `max` | `number` | `100` | | |
|
|
68
|
+
| `minValue` | `Optional<number>` | `0` | | |
|
|
69
|
+
| `maxValue` | `Optional<number>` | `0` | | |
|
|
70
|
+
|
|
71
|
+
### Events
|
|
72
|
+
|
|
73
|
+
| Name | Payload |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| `update:minValue` | `[value: Optional<number>]` |
|
|
76
|
+
| `update:maxValue` | `[value: Optional<number>]` |
|
|
77
|
+
|
|
78
|
+
### v-model
|
|
79
|
+
|
|
80
|
+
- `v-model:minValue` (`Optional<number>`)
|
|
81
|
+
- `v-model:maxValue` (`Optional<number>`)
|
|
82
|
+
|
|
83
|
+
### Slots
|
|
84
|
+
|
|
85
|
+
None.
|
|
86
|
+
|
|
87
|
+
### Exposed (template ref)
|
|
88
|
+
|
|
89
|
+
None.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseSnackbar
|
|
3
|
+
status: preferred
|
|
4
|
+
category: Feedback
|
|
5
|
+
summary: Temporary toast notification that slides in at the page edge, auto-closes with a progress bar, swipe to dismiss.
|
|
6
|
+
import: @wikicasa-dev/components/UIKit/BaseSnackbar
|
|
7
|
+
version: 3.0.0-alpha.3
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BaseSnackbar
|
|
11
|
+
|
|
12
|
+
Temporary toast notification that slides in at the page edge, auto-closes with a progress bar, swipe to dismiss.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import BaseSnackbar from "@wikicasa-dev/components/UIKit/BaseSnackbar";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Stylesheets: `css/BaseSnackbar`.
|
|
19
|
+
|
|
20
|
+
Use it to confirm an action that happened ("Annuncio salvato nei preferiti", "Annuncio ripristinato") or to report a background error, without taking space in the layout. It closes itself after `duration` ms (default 3000) and shows a progress bar meanwhile. For a message that must stay on the page, use `BaseAlert`.
|
|
21
|
+
|
|
22
|
+
Control it with `v-model:open`. Set `v-model:refresh` to `true` to close and reopen it (restarting the timer) when the same snackbar fires again while already open. Colors: `alertClass` = `primary` (default, lavender/blue), `danger` (pale red/red), `darkblue` (dark blue/white).
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```vue
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import BaseSnackbar from "@wikicasa-dev/components/UIKit/BaseSnackbar";
|
|
29
|
+
import BaseButton from "@wikicasa-dev/components/UIKit/BaseButton";
|
|
30
|
+
import { ref } from "vue";
|
|
31
|
+
|
|
32
|
+
const open = ref(false);
|
|
33
|
+
const refresh = ref(false);
|
|
34
|
+
|
|
35
|
+
const save = () => {
|
|
36
|
+
if (open.value) refresh.value = true;
|
|
37
|
+
else open.value = true;
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<BaseButton type="button" @click="save">Salva nei preferiti</BaseButton>
|
|
43
|
+
|
|
44
|
+
<BaseSnackbar
|
|
45
|
+
v-model:open="open"
|
|
46
|
+
v-model:refresh="refresh"
|
|
47
|
+
:duration="3500"
|
|
48
|
+
class="favorites-toast"
|
|
49
|
+
>
|
|
50
|
+
<template #title>
|
|
51
|
+
<strong>Trilocale in Via Roma, Milano</strong>
|
|
52
|
+
</template>
|
|
53
|
+
Annuncio salvato nei preferiti.
|
|
54
|
+
</BaseSnackbar>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<style>
|
|
58
|
+
.favorites-toast { width: 100%; justify-content: space-between; }
|
|
59
|
+
</style>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Do / Don't
|
|
63
|
+
|
|
64
|
+
- One snackbar per message type; drive it with state, don't mount/unmount it with `v-if` per message.
|
|
65
|
+
- The close (X) button is on by default; pass `:with-close-icon="false"` for short confirmations. Replace the icon via the `toast-close` slot.
|
|
66
|
+
- An extra action button (e.g. "Annulla") goes in the `toast-action` slot.
|
|
67
|
+
- By default it is teleported to `body` and sits fixed at the bottom-left. Pass `:to="false"` to render the viewport in place (e.g. inside a modal), or a selector to teleport elsewhere.
|
|
68
|
+
- `swipeDirection` (default `left`) also decides the side it slides in from.
|
|
69
|
+
- Use `type="background"` for messages not caused by the user's own action, so screen readers announce them less intrusively.
|
|
70
|
+
- `class` goes on the toast itself; other fallthrough attributes (including `style` and `id`) are dropped. Use `viewportClasses` for the container (e.g. a `z-index` above modals).
|
|
71
|
+
|
|
72
|
+
## Styling hooks
|
|
73
|
+
|
|
74
|
+
On the viewport (`.uikit-alert-viewport`, add your own class with `viewportClasses`): `--uikit-alert-viewport-padding`, `--uikit-alert-viewport-position`, `--uikit-alert-viewport-top`/`-right`/`-bottom`/`-left`, `--uikit-alert-viewport-display`, `--uikit-alert-viewport-flex-direction`, `--uikit-alert-viewport-align-items`, `--uikit-alert-viewport-justify-content`.
|
|
75
|
+
|
|
76
|
+
On the toast (`.uikit-snackbar` / `.uikit-toast-root`; `BaseAlert`'s `.uikit-alert` classes don't apply to it): `--uikit-alert-bg-color`, `--uikit-alert-text-color`, `--uikit-alert-progress-indicator-bg-color`, `--uikit-toast-root-display` (e.g. `grid` for custom layouts), `--uikit-toast-root-gap`.
|
|
77
|
+
|
|
78
|
+
## API
|
|
79
|
+
|
|
80
|
+
_Generated from the component's types. Do not edit by hand._
|
|
81
|
+
|
|
82
|
+
### Props
|
|
83
|
+
|
|
84
|
+
| Name | Type | Default | Required | Description |
|
|
85
|
+
| --- | --- | --- | --- | --- |
|
|
86
|
+
| `alertClass` | `"primary" \| "danger" \| "darkblue"` | `"primary"` | | |
|
|
87
|
+
| `duration` | `number` | `3000` | | Time in milliseconds that each toast should remain visible for. |
|
|
88
|
+
| `swipeDirection` | `SwipeDirection` | `"left"` | | Direction of pointer swipe that should close the toast. |
|
|
89
|
+
| `to` | `string \| false \| HTMLElement` | `"body"` | | Vue native teleport component prop :to |
|
|
90
|
+
| `dataCy` | `string` | `""` | | |
|
|
91
|
+
| `withCloseIcon` | `boolean` | `true` | | |
|
|
92
|
+
| `closeClasses` | `ClassTypeProp` | | | |
|
|
93
|
+
| `viewportClasses` | `ClassTypeProp` | `""` | | |
|
|
94
|
+
| `type` | `"foreground" \| "background"` | `"foreground"` | | Control the sensitivity of the toast for accessibility purposes. For toasts that are the result of a user action, choose foreground. Toasts generated from background tasks should use background. |
|
|
95
|
+
| `open` | `Optional<boolean>` | `false` | | |
|
|
96
|
+
| `refresh` | `Optional<boolean>` | `false` | | |
|
|
97
|
+
|
|
98
|
+
### Events
|
|
99
|
+
|
|
100
|
+
| Name | Payload |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| `update:refresh` | `[value: Optional<boolean>]` |
|
|
103
|
+
| `update:open` | `[value: Optional<boolean>]` |
|
|
104
|
+
|
|
105
|
+
### v-model
|
|
106
|
+
|
|
107
|
+
- `v-model:open` (`Optional<boolean>`)
|
|
108
|
+
- `v-model:refresh` (`Optional<boolean>`)
|
|
109
|
+
|
|
110
|
+
### Slots
|
|
111
|
+
|
|
112
|
+
| Name | Slot props |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| `trigger` | `{ open: () => boolean; }` |
|
|
115
|
+
| `title` | |
|
|
116
|
+
| `default` | |
|
|
117
|
+
| `toast-close` | |
|
|
118
|
+
| `toast-action` | |
|
|
119
|
+
|
|
120
|
+
### Exposed (template ref)
|
|
121
|
+
|
|
122
|
+
None.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: BaseTab
|
|
3
|
+
status: legacy
|
|
4
|
+
category: Navigation
|
|
5
|
+
summary: One tab (header plus panel content) inside the legacy BaseTabView.
|
|
6
|
+
useInstead: BaseTabsTrigger
|
|
7
|
+
import: @wikicasa-dev/components/UIKit/Tab/BaseTab
|
|
8
|
+
version: 3.0.0-alpha.3
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# BaseTab
|
|
12
|
+
|
|
13
|
+
> **Legacy.** Don't use in new designs. Use `BaseTabsTrigger` instead.
|
|
14
|
+
|
|
15
|
+
One tab (header plus panel content) inside the legacy BaseTabView.
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import BaseTab from "@wikicasa-dev/components/UIKit/Tab/BaseTab";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Child of the legacy `BaseTabView`; it renders nothing useful on its own. In the new `BaseTabs` set, a `BaseTab` splits into a `BaseTabsTrigger` (the header) and a `BaseTabsContent` (the panel); see the `BaseTabs` doc.
|
|
22
|
+
|
|
23
|
+
For reading existing code: the tab label is `headerTitle` or the `header` slot; the default slot is the panel content; `tabPanelClasses` styles the panel; `class` styles the tab button. `activeTabPanelIdx` makes the tab show another tab's panel (by index) instead of its own.
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
<script setup lang="ts">
|
|
29
|
+
import BaseTabView from "@wikicasa-dev/components/UIKit/Tab/BaseTabView";
|
|
30
|
+
import BaseTab from "@wikicasa-dev/components/UIKit/Tab/BaseTab";
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<BaseTabView tab-view-description="Foto e mappa">
|
|
35
|
+
<BaseTab class="gallery-tab" tab-panel-classes="gallery-panel">
|
|
36
|
+
<template #header>Foto</template>
|
|
37
|
+
Galleria del bilocale in Via Toledo, Napoli
|
|
38
|
+
</BaseTab>
|
|
39
|
+
<BaseTab header-title="Mappa" class="gallery-tab" tab-panel-classes="gallery-panel">
|
|
40
|
+
Mappa della zona Chiaia
|
|
41
|
+
</BaseTab>
|
|
42
|
+
</BaseTabView>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<style>
|
|
46
|
+
.gallery-tab { padding: 0 10px; }
|
|
47
|
+
.gallery-panel { margin-top: 10px; }
|
|
48
|
+
</style>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Do / Don't
|
|
52
|
+
|
|
53
|
+
- Use it only as a direct child of `BaseTabView`; new code should use `BaseTabsTrigger` + `BaseTabsContent`.
|
|
54
|
+
- Don't toggle its `class` based on state: the content re-renders. Target `[aria-selected="true"]` instead.
|
|
55
|
+
|
|
56
|
+
## API
|
|
57
|
+
|
|
58
|
+
_Generated from the component's types. Do not edit by hand._
|
|
59
|
+
|
|
60
|
+
### Props
|
|
61
|
+
|
|
62
|
+
| Name | Type | Default | Required | Description |
|
|
63
|
+
| --- | --- | --- | --- | --- |
|
|
64
|
+
| `activeTabPanelIdx` | `number` | | | |
|
|
65
|
+
| `headerTitle` | `string` | | | |
|
|
66
|
+
| `tabPanelClasses` | `ClassTypeProp` | | | |
|
|
67
|
+
|
|
68
|
+
### Events
|
|
69
|
+
|
|
70
|
+
None.
|
|
71
|
+
|
|
72
|
+
### v-model
|
|
73
|
+
|
|
74
|
+
None.
|
|
75
|
+
|
|
76
|
+
### Slots
|
|
77
|
+
|
|
78
|
+
| Name | Slot props |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `header` | |
|
|
81
|
+
|
|
82
|
+
### Exposed (template ref)
|
|
83
|
+
|
|
84
|
+
None.
|