@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,152 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, createVNode as n, defineComponent as r, mergeModels as i, onMounted as a, openBlock as o, ref as s, useAttrs as c, useModel as l, useTemplateRef as u, withModifiers as d } from "vue";
|
|
2
|
+
import f from "./BaseInput.js";
|
|
3
|
+
import '../css/BaseSlider.css';// lib/UIKit/BaseSlider.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = { class: "range_container" }, m = { class: "sliders_control" }, h = [
|
|
5
|
+
"value",
|
|
6
|
+
"min",
|
|
7
|
+
"max",
|
|
8
|
+
"step"
|
|
9
|
+
], g = [
|
|
10
|
+
"value",
|
|
11
|
+
"min",
|
|
12
|
+
"max",
|
|
13
|
+
"step"
|
|
14
|
+
], _ = { class: "form_control row" }, v = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, y = { class: "col-sm-6 col-xl-4" }, b = /* @__PURE__ */ function(e) {
|
|
15
|
+
return e.range = "#2B5DFF", e.slider = "#B4C2F0", e;
|
|
16
|
+
}(b || {}), x = /*@__PURE__*/ r({
|
|
17
|
+
__name: "BaseSlider",
|
|
18
|
+
props: /*@__PURE__*/ i({
|
|
19
|
+
type: { default: "linear" },
|
|
20
|
+
min: { default: 0 },
|
|
21
|
+
max: { default: 100 }
|
|
22
|
+
}, {
|
|
23
|
+
minValue: { default: 0 },
|
|
24
|
+
minValueModifiers: {},
|
|
25
|
+
maxValue: { default: 0 },
|
|
26
|
+
maxValueModifiers: {}
|
|
27
|
+
}),
|
|
28
|
+
emits: ["update:minValue", "update:maxValue"],
|
|
29
|
+
setup(r) {
|
|
30
|
+
function i(e, t) {
|
|
31
|
+
return [parseInt(e.value, 10), parseInt(t.value, 10)];
|
|
32
|
+
}
|
|
33
|
+
let x = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, S = (e) => Math.exp((e.position - e.minPos) * e.scale + e.minlval);
|
|
34
|
+
function C(e, t, n, r, i) {
|
|
35
|
+
let a = t.max - t.min, o = e - t.min, s = t.value - t.min;
|
|
36
|
+
i.style.background = `linear-gradient(
|
|
37
|
+
to right,
|
|
38
|
+
${n} 0%,
|
|
39
|
+
${n} ${o / a * 100}%,
|
|
40
|
+
${r} ${o / a * 100}%,
|
|
41
|
+
${r} ${s / a * 100}%,
|
|
42
|
+
${n} ${s / a * 100}%,
|
|
43
|
+
${n} 100%)`;
|
|
44
|
+
}
|
|
45
|
+
function w(e, t) {
|
|
46
|
+
e <= 0 ? t.style.zIndex = "2" : t.style.zIndex = "0";
|
|
47
|
+
}
|
|
48
|
+
let T = l(r, "minValue"), E = l(r, "maxValue"), D = s(0), O = s(100), k = s(10), A = s(40), j = s(0), M = s(0), N = s(0), P = u("fromSlider"), F = u("toSlider"), I = (e, t) => {
|
|
49
|
+
if (!P.value || !F.value) return;
|
|
50
|
+
t ||= "0";
|
|
51
|
+
let n = parseInt(t, 10);
|
|
52
|
+
if (e == "min-input") {
|
|
53
|
+
if (n >= E.value) return;
|
|
54
|
+
T.value = n, z(F.value, n, E.value);
|
|
55
|
+
} else n < T.value || (E.value = n, B(F.value, F.value, T.value, n));
|
|
56
|
+
}, L = (e) => {
|
|
57
|
+
if (r.type === "logarithmic") return e ||= 1, parseInt(x({
|
|
58
|
+
value: e,
|
|
59
|
+
minPos: D.value,
|
|
60
|
+
minlval: j.value,
|
|
61
|
+
scale: N.value
|
|
62
|
+
}).toFixed(0), 10);
|
|
63
|
+
if (r.type === "linear") return e;
|
|
64
|
+
throw Error("The slider type has not been implemented");
|
|
65
|
+
}, R = (e) => {
|
|
66
|
+
if (r.type === "logarithmic") return e ||= 1, parseInt(S({
|
|
67
|
+
position: e,
|
|
68
|
+
scale: N.value,
|
|
69
|
+
minlval: j.value,
|
|
70
|
+
minPos: D.value
|
|
71
|
+
}).toFixed(0), 10);
|
|
72
|
+
if (r.type === "linear") return e;
|
|
73
|
+
throw Error("The slider type has not been implemented");
|
|
74
|
+
}, z = (e, t, n) => {
|
|
75
|
+
let r = L(t), i = L(n);
|
|
76
|
+
C(r, {
|
|
77
|
+
min: D.value,
|
|
78
|
+
max: O.value,
|
|
79
|
+
value: i
|
|
80
|
+
}, b.slider, b.range, e);
|
|
81
|
+
let a = r, o = E.value;
|
|
82
|
+
a > o ? k.value = o : k.value = a;
|
|
83
|
+
}, B = (e, t, n, r) => {
|
|
84
|
+
let i = L(n), a = L(r);
|
|
85
|
+
C(i, {
|
|
86
|
+
min: D.value,
|
|
87
|
+
max: O.value,
|
|
88
|
+
value: a
|
|
89
|
+
}, b.slider, b.range, t);
|
|
90
|
+
let o = T.value, s = a;
|
|
91
|
+
w(E.value, e), o <= s ? A.value = s : A.value = o;
|
|
92
|
+
}, V = (e, t) => {
|
|
93
|
+
if (!t.value) return;
|
|
94
|
+
let [n, r] = i(e, t), a = R(n);
|
|
95
|
+
C(n, {
|
|
96
|
+
min: D.value,
|
|
97
|
+
max: O.value,
|
|
98
|
+
value: r
|
|
99
|
+
}, b.slider, b.range, t), n > r ? (e.value = `${r}`, k.value = r, T.value = r) : (k.value = n, T.value = a);
|
|
100
|
+
}, H = (e, t) => {
|
|
101
|
+
if (!t.value) return;
|
|
102
|
+
let [n, r] = i(e, t), a = R(r);
|
|
103
|
+
C(k.value, {
|
|
104
|
+
min: D.value,
|
|
105
|
+
max: O.value,
|
|
106
|
+
value: r
|
|
107
|
+
}, b.slider, b.range, t), w(parseInt(t.value, 10), t), n <= r ? (A.value = r, E.value = a) : (t.value = `${n}`, A.value = n, E.value = n);
|
|
108
|
+
}, U = c();
|
|
109
|
+
return D.value = parseInt(`${r.min || 0}`, 10), O.value = parseInt(`${r.max || 100}`, 10), k.value = D.value, A.value = O.value, T.value = parseInt(`${U.minValue || D.value}`, 10), E.value = parseInt(`${U.maxValue || O.value}`, 10), j.value = Math.log(T.value || 1), M.value = Math.log(E.value), N.value = (M.value - j.value) / (O.value - D.value), a(() => {
|
|
110
|
+
P.value && F.value && (C(k.value, {
|
|
111
|
+
min: D.value,
|
|
112
|
+
max: O.value,
|
|
113
|
+
value: A.value
|
|
114
|
+
}, b.slider, b.range, F.value), w(A.value, F.value));
|
|
115
|
+
}), (r, i) => (o(), e("div", p, [t("div", m, [t("input", {
|
|
116
|
+
ref_key: "fromSlider",
|
|
117
|
+
ref: P,
|
|
118
|
+
class: "fromSlider",
|
|
119
|
+
type: "range",
|
|
120
|
+
value: k.value,
|
|
121
|
+
min: D.value,
|
|
122
|
+
max: O.value,
|
|
123
|
+
step: r.$attrs.step,
|
|
124
|
+
onInput: i[0] ||= d((e) => V(P.value, F.value), ["stop"])
|
|
125
|
+
}, null, 40, h), t("input", {
|
|
126
|
+
ref_key: "toSlider",
|
|
127
|
+
ref: F,
|
|
128
|
+
class: "toSlider",
|
|
129
|
+
type: "range",
|
|
130
|
+
value: A.value,
|
|
131
|
+
min: D.value,
|
|
132
|
+
max: O.value,
|
|
133
|
+
step: r.$attrs.step,
|
|
134
|
+
onInput: i[1] ||= d((e) => H(P.value, F.value), ["stop"])
|
|
135
|
+
}, null, 40, g)]), t("div", _, [t("div", v, [n(f, {
|
|
136
|
+
"label-text": "Min",
|
|
137
|
+
type: "text",
|
|
138
|
+
pattern: "[0-9]*",
|
|
139
|
+
inputmode: "numeric",
|
|
140
|
+
"model-value": T.value,
|
|
141
|
+
"onUpdate:modelValue": i[2] ||= (e) => I("min-input", `${e || ""}`)
|
|
142
|
+
}, null, 8, ["model-value"])]), t("div", y, [n(f, {
|
|
143
|
+
"label-text": "Max",
|
|
144
|
+
type: "text",
|
|
145
|
+
pattern: "[0-9]*",
|
|
146
|
+
inputmode: "numeric",
|
|
147
|
+
"model-value": E.value,
|
|
148
|
+
"onUpdate:modelValue": i[3] ||= (e) => I("max-input", `${e || ""}`)
|
|
149
|
+
}, null, 8, ["model-value"])])])]));
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
export { x as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Optional } from '@wikicasa-dev/types';
|
|
2
|
+
import { ToastPortalProps, ToastRootProps, ToastProviderProps } from 'reka-ui';
|
|
3
|
+
import { ClassTypeProp } from './types';
|
|
4
|
+
export type SnackbarProps = {
|
|
5
|
+
alertClass?: "primary" | "danger" | "darkblue";
|
|
6
|
+
/**
|
|
7
|
+
* Time in milliseconds that each toast should remain visible for.
|
|
8
|
+
*/
|
|
9
|
+
duration?: ToastRootProps["duration"];
|
|
10
|
+
/**
|
|
11
|
+
* Direction of pointer swipe that should close the toast.
|
|
12
|
+
* @defaultValue "left"
|
|
13
|
+
*/
|
|
14
|
+
swipeDirection?: ToastProviderProps["swipeDirection"];
|
|
15
|
+
/**
|
|
16
|
+
* Vue native teleport component prop :to
|
|
17
|
+
* @see https://vuejs.org/guide/built-ins/teleport.html#basic-usage
|
|
18
|
+
*
|
|
19
|
+
* If false, the viewport won't use the teleport feature.
|
|
20
|
+
*/
|
|
21
|
+
to?: string | false | ToastPortalProps["to"];
|
|
22
|
+
dataCy?: string;
|
|
23
|
+
withCloseIcon?: boolean;
|
|
24
|
+
closeClasses?: ClassTypeProp;
|
|
25
|
+
viewportClasses?: ClassTypeProp;
|
|
26
|
+
/**
|
|
27
|
+
* Control the sensitivity of the toast for accessibility purposes.
|
|
28
|
+
* For toasts that are the result of a user action, choose foreground. Toasts generated from background tasks should use background.
|
|
29
|
+
* @defaultValue "foreground"
|
|
30
|
+
*/
|
|
31
|
+
type?: ToastRootProps["type"];
|
|
32
|
+
};
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<SnackbarProps & {
|
|
36
|
+
open?: Optional<boolean>;
|
|
37
|
+
refresh?: Optional<boolean>;
|
|
38
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
|
+
"update:refresh": (value: Optional<boolean>) => any;
|
|
40
|
+
"update:open": (value: Optional<boolean>) => any;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<SnackbarProps & {
|
|
42
|
+
open?: Optional<boolean>;
|
|
43
|
+
refresh?: Optional<boolean>;
|
|
44
|
+
}> & Readonly<{
|
|
45
|
+
"onUpdate:refresh"?: ((value: Optional<boolean>) => any) | undefined;
|
|
46
|
+
"onUpdate:open"?: ((value: Optional<boolean>) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
48
|
+
trigger?: (props: {
|
|
49
|
+
open: () => boolean;
|
|
50
|
+
}) => any;
|
|
51
|
+
} & {
|
|
52
|
+
title?: (props: {}) => any;
|
|
53
|
+
} & {
|
|
54
|
+
default?: (props: {}) => any;
|
|
55
|
+
} & {
|
|
56
|
+
'toast-close'?: (props: {}) => any;
|
|
57
|
+
} & {
|
|
58
|
+
'toast-action'?: (props: {}) => any;
|
|
59
|
+
}>;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { createBlock as e, createCommentVNode as t, createVNode as n, defineComponent as r, mergeModels as i, nextTick as a, normalizeClass as o, normalizeStyle as s, openBlock as c, ref as l, renderSlot as u, unref as d, useModel as f, watch as p, withCtx as m } from "vue";
|
|
2
|
+
import { CloseIcon as h } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
import { ProgressIndicator as g, ProgressRoot as _, ToastAction as v, ToastClose as y, ToastDescription as b, ToastPortal as x, ToastProvider as S, ToastRoot as C, ToastTitle as w, ToastViewport as T } from "reka-ui";
|
|
4
|
+
import '../css/BaseSnackbar.css';// lib/UIKit/BaseSnackbar.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var E = /*@__PURE__*/ r({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BaseSnackbar",
|
|
8
|
+
props: /*@__PURE__*/ i({
|
|
9
|
+
alertClass: { default: "primary" },
|
|
10
|
+
duration: { default: 3e3 },
|
|
11
|
+
swipeDirection: { default: "left" },
|
|
12
|
+
to: {
|
|
13
|
+
type: [String, Boolean],
|
|
14
|
+
default: "body"
|
|
15
|
+
},
|
|
16
|
+
dataCy: { default: "" },
|
|
17
|
+
withCloseIcon: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
closeClasses: {},
|
|
22
|
+
viewportClasses: { default: "" },
|
|
23
|
+
type: { default: "foreground" }
|
|
24
|
+
}, {
|
|
25
|
+
open: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
openModifiers: {},
|
|
30
|
+
refresh: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
refreshModifiers: {}
|
|
35
|
+
}),
|
|
36
|
+
emits: ["update:open", "update:refresh"],
|
|
37
|
+
setup(r) {
|
|
38
|
+
let i = f(r, "open"), E = f(r, "refresh"), D = l(0), O, k, A = (e = 3e3) => {
|
|
39
|
+
D.value = 0;
|
|
40
|
+
let t = Date.now();
|
|
41
|
+
k = setInterval(() => {
|
|
42
|
+
let n = Date.now() - t;
|
|
43
|
+
D.value = Math.min(100, n / e * 100), D.value >= 100 && clearInterval(k);
|
|
44
|
+
}, 30);
|
|
45
|
+
}, j = () => {
|
|
46
|
+
clearTimeout(O), O = setTimeout(() => {
|
|
47
|
+
i.value = !1;
|
|
48
|
+
}, r.duration), A(r.duration);
|
|
49
|
+
};
|
|
50
|
+
return p(i, (e) => {
|
|
51
|
+
a(() => {
|
|
52
|
+
e ? j() : (clearInterval(k), clearTimeout(O), D.value = 0);
|
|
53
|
+
});
|
|
54
|
+
}, { immediate: !0 }), p(E, (e) => {
|
|
55
|
+
e && (i.value = !1, setTimeout(() => {
|
|
56
|
+
i.value = !0, E.value = !1;
|
|
57
|
+
}));
|
|
58
|
+
}), (a, l) => (c(), e(d(S), { "swipe-direction": r.swipeDirection }, {
|
|
59
|
+
default: m(() => [
|
|
60
|
+
u(a.$slots, "trigger", { open: () => i.value = !0 }),
|
|
61
|
+
n(d(C), {
|
|
62
|
+
open: i.value,
|
|
63
|
+
"onUpdate:open": l[1] ||= (e) => i.value = e,
|
|
64
|
+
duration: r.duration,
|
|
65
|
+
class: o(["uikit-toast-root uikit-relative uikit-box-border uikit-overflow-hidden uikit-rounded-[4px] uikit-p-[16px] uikit-text-16 uikit-font-medium uikit-shadow-surface sm:uikit-max-w-[460px]", [
|
|
66
|
+
"uikit-snackbar",
|
|
67
|
+
`uikit-snackbar-w-${r.alertClass}`,
|
|
68
|
+
a.$attrs.class
|
|
69
|
+
]]),
|
|
70
|
+
"data-cy": r.dataCy,
|
|
71
|
+
type: r.type
|
|
72
|
+
}, {
|
|
73
|
+
default: m(() => [
|
|
74
|
+
a.$slots.title ? (c(), e(d(w), {
|
|
75
|
+
key: 0,
|
|
76
|
+
"as-child": ""
|
|
77
|
+
}, {
|
|
78
|
+
default: m(() => [u(a.$slots, "title")]),
|
|
79
|
+
_: 3
|
|
80
|
+
})) : t("", !0),
|
|
81
|
+
n(d(b), { "as-child": "" }, {
|
|
82
|
+
default: m(() => [u(a.$slots, "default")]),
|
|
83
|
+
_: 3
|
|
84
|
+
}),
|
|
85
|
+
r.withCloseIcon ? (c(), e(d(y), {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: o(["uikit-ml-[16px] uikit-flex uikit-size-[24px] uikit-shrink-0 uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-w-lightgray", r.closeClasses]),
|
|
88
|
+
"data-cy": "base-snackbar-close-btn"
|
|
89
|
+
}, {
|
|
90
|
+
default: m(() => [u(a.$slots, "toast-close", {}, () => [n(d(h), {
|
|
91
|
+
width: 12,
|
|
92
|
+
height: 12,
|
|
93
|
+
"stroke-color": "#fff"
|
|
94
|
+
})])]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 8, ["class"])) : t("", !0),
|
|
97
|
+
a.$slots["toast-action"] ? (c(), e(d(v), {
|
|
98
|
+
key: 2,
|
|
99
|
+
"as-child": "",
|
|
100
|
+
"alt-text": "Goto schedule to undo"
|
|
101
|
+
}, {
|
|
102
|
+
default: m(() => [u(a.$slots, "toast-action")]),
|
|
103
|
+
_: 3
|
|
104
|
+
})) : t("", !0),
|
|
105
|
+
n(d(_), {
|
|
106
|
+
modelValue: D.value,
|
|
107
|
+
"onUpdate:modelValue": l[0] ||= (e) => D.value = e,
|
|
108
|
+
class: "uikit-absolute uikit-bottom-0 uikit-left-0 uikit-h-[4px] uikit-w-full uikit-overflow-hidden"
|
|
109
|
+
}, {
|
|
110
|
+
default: m(() => [n(d(g), {
|
|
111
|
+
class: "uikit-snackbar-progress-indicator uikit-relative uikit-block uikit-size-full uikit-transition-transform uikit-duration-75 uikit-will-change-transform",
|
|
112
|
+
style: s(`transform: translateX(-${100 - D.value}%)`)
|
|
113
|
+
}, null, 8, ["style"])]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["modelValue"])
|
|
116
|
+
]),
|
|
117
|
+
_: 3
|
|
118
|
+
}, 8, [
|
|
119
|
+
"open",
|
|
120
|
+
"duration",
|
|
121
|
+
"class",
|
|
122
|
+
"data-cy",
|
|
123
|
+
"type"
|
|
124
|
+
]),
|
|
125
|
+
r.to ? (c(), e(d(x), {
|
|
126
|
+
key: 0,
|
|
127
|
+
to: r.to
|
|
128
|
+
}, {
|
|
129
|
+
default: m(() => [n(d(T), { class: o(["uikit-alert-viewport uikit-m-0 uikit-w-full uikit-list-none uikit-gap-[8px]", r.viewportClasses]) }, null, 8, ["class"])]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["to"])) : (c(), e(d(T), {
|
|
132
|
+
key: 1,
|
|
133
|
+
class: o(["uikit-alert-viewport uikit-m-0 uikit-w-full uikit-list-none uikit-gap-[8px]", r.viewportClasses])
|
|
134
|
+
}, null, 8, ["class"]))
|
|
135
|
+
]),
|
|
136
|
+
_: 3
|
|
137
|
+
}, 8, ["swipe-direction"]));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
export { E as default };
|
|
@@ -7,26 +7,26 @@ type __VLS_Props = {
|
|
|
7
7
|
resize?: boolean;
|
|
8
8
|
labelClasses?: ClassTypeProp;
|
|
9
9
|
};
|
|
10
|
-
type
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
11
|
modelValue?: string | undefined;
|
|
12
|
-
}
|
|
13
|
-
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
14
15
|
disableTextarea: () => void;
|
|
15
16
|
clearTextareaElem: () => void;
|
|
16
17
|
focusDisabledTextarea: () => void;
|
|
17
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
-
click: (args_0: MouseEvent) => any;
|
|
19
19
|
"update:modelValue": (value: string | undefined) => any;
|
|
20
|
+
click: (args_0: MouseEvent) => any;
|
|
21
|
+
keydown: (args_0: KeyboardEvent) => any;
|
|
20
22
|
focusin: () => any;
|
|
21
23
|
focusout: () => any;
|
|
22
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
23
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
-
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
25
25
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
26
|
+
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
27
|
+
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
26
28
|
onFocusin?: (() => any) | undefined;
|
|
27
29
|
onFocusout?: (() => any) | undefined;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
textarea: HTMLTextAreaElement;
|
|
31
|
-
}, any>;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
32
|
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, mergeModels as a, nextTick as o, normalizeClass as s, openBlock as c, ref as l, unref as u, useModel as d, watch as f, withModifiers as p } from "vue";
|
|
2
|
+
import m from "./BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as h } from "../composables/useFloatingLabel.js";
|
|
4
|
+
import '../css/BaseTextarea.css';// lib/UIKit/BaseTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var g = [
|
|
6
|
+
"id",
|
|
7
|
+
"data-cy",
|
|
8
|
+
"rows",
|
|
9
|
+
"disabled",
|
|
10
|
+
"aria-labelledby",
|
|
11
|
+
"readonly",
|
|
12
|
+
"value"
|
|
13
|
+
], _ = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"
|
|
16
|
+
}, v = ["innerHTML"], y = ["innerHTML"], b = /*@__PURE__*/ i({
|
|
17
|
+
inheritAttrs: !1,
|
|
18
|
+
__name: "BaseTextarea",
|
|
19
|
+
props: /*@__PURE__*/ a({
|
|
20
|
+
labelText: { default: "" },
|
|
21
|
+
feedback: {},
|
|
22
|
+
isValid: {
|
|
23
|
+
type: [Boolean, null],
|
|
24
|
+
default: null
|
|
25
|
+
},
|
|
26
|
+
resize: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
labelClasses: {}
|
|
31
|
+
}, {
|
|
32
|
+
modelValue: { default: "" },
|
|
33
|
+
modelModifiers: {}
|
|
34
|
+
}),
|
|
35
|
+
emits: /*@__PURE__*/ a([
|
|
36
|
+
"focusin",
|
|
37
|
+
"focusout",
|
|
38
|
+
"click",
|
|
39
|
+
"keydown"
|
|
40
|
+
], ["update:modelValue"]),
|
|
41
|
+
setup(i, { expose: a, emit: b }) {
|
|
42
|
+
let x = d(i, "modelValue"), S = b, { labelState: C, handleFocusIn: w, handleFocusOut: T, setFloatingLabel: E, setInlineLabel: D } = h(S), O = l(null);
|
|
43
|
+
f(x, (e) => {
|
|
44
|
+
`${e}`.length && C.value !== "floating-label" ? E() : !e?.length && C.value !== "inline-label" && document.activeElement !== O.value && D();
|
|
45
|
+
}, { immediate: !0 });
|
|
46
|
+
let k = ({ target: e }) => {
|
|
47
|
+
x.value = e.value;
|
|
48
|
+
};
|
|
49
|
+
return a({
|
|
50
|
+
disableTextarea: () => {
|
|
51
|
+
O.value && (O.value.setAttribute("readonly", "readonly"), O.value.classList.add("disabled"));
|
|
52
|
+
},
|
|
53
|
+
clearTextareaElem: () => {
|
|
54
|
+
O.value && (O.value.value = "");
|
|
55
|
+
},
|
|
56
|
+
focusDisabledTextarea: () => {
|
|
57
|
+
O.value && (O.value.removeAttribute("readonly"), O.value.classList.remove("disabled"), o(() => {
|
|
58
|
+
O.value && O.value.focus();
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
}), (a, o) => (c(), t("div", { class: s(a.$attrs["wrapper-classes"]) }, [n("div", { class: s(["input-wrapper uikit-relative uikit-rounded-xs uikit-px-0", [u(C) === "floating-label" ? "floating-state" : "inline-state"]]) }, [
|
|
62
|
+
n("textarea", {
|
|
63
|
+
id: a.$attrs.id,
|
|
64
|
+
ref_key: "textarea",
|
|
65
|
+
ref: O,
|
|
66
|
+
"data-cy": a.$attrs["data-cy"],
|
|
67
|
+
class: s(["textarea-scrollbar uikit-peer/fieldset uikit-relative uikit-z-20 uikit-mb-10px uikit-mt-15px uikit-w-[calc(100%-1px)] uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-transparent uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-outline-none", [
|
|
68
|
+
{ "is-invalid invalid-bg !uikit-pr-10": i.isValid === !1 },
|
|
69
|
+
{ "is-valid valid-bg !uikit-pr-10": i.isValid },
|
|
70
|
+
{ "uikit-resize-none": !i.resize },
|
|
71
|
+
a.$attrs.class
|
|
72
|
+
]]),
|
|
73
|
+
rows: a.$attrs.rows,
|
|
74
|
+
disabled: a.$attrs.disabled,
|
|
75
|
+
"aria-labelledby": a.$attrs.id,
|
|
76
|
+
readonly: a.$attrs.readonly,
|
|
77
|
+
onFocusin: o[0] ||= p((e) => u(w)(), ["stop"]),
|
|
78
|
+
onFocusout: o[1] ||= p((e) => u(T)(`${x.value}`.trim()), ["stop"]),
|
|
79
|
+
onInput: p(k, ["stop"]),
|
|
80
|
+
onKeydown: o[2] ||= p((e) => S("keydown", e), ["stop"]),
|
|
81
|
+
onClick: o[3] ||= (e) => S("click", e),
|
|
82
|
+
value: x.value
|
|
83
|
+
}, null, 42, g),
|
|
84
|
+
n("fieldset", { class: s(["uikit-pointer-events-none uikit-absolute -uikit-top-0 uikit-bottom-[3px] uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-bg-white uikit-p-0 uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary peer-disabled/fieldset:uikit-bg-w-cultured peer-[&.disabled]/fieldset:uikit-bg-w-cultured peer-focus/fieldset:[&.is-invalid]:uikit-border-w-danger", [
|
|
85
|
+
{
|
|
86
|
+
"is-invalid": i.isValid === !1,
|
|
87
|
+
"is-valid": i.isValid
|
|
88
|
+
},
|
|
89
|
+
{ "uikit-border-w-danger": i.isValid === !1 },
|
|
90
|
+
{ "uikit-border-w-primary": i.isValid },
|
|
91
|
+
{ "uikit-border-w-secondary": i.isValid === null }
|
|
92
|
+
]]) }, [i.labelText ? (c(), t("legend", _, [n("span", {
|
|
93
|
+
class: s(["uikit-px-5px uikit-opacity-0", [{ "uikit-visible uikit-inline-block": u(C) === "floating-label" }, { "uikit-invisible uikit-hidden": u(C) === "inline-label" }]]),
|
|
94
|
+
innerHTML: i.labelText
|
|
95
|
+
}, null, 10, v)])) : e("", !0)], 2),
|
|
96
|
+
r(m, {
|
|
97
|
+
for: a.$attrs.id,
|
|
98
|
+
"label-text": i.labelText,
|
|
99
|
+
"label-state": u(C),
|
|
100
|
+
required: a.$attrs.required,
|
|
101
|
+
"is-valid": i.isValid,
|
|
102
|
+
"label-classes": [u(C) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4", i.labelClasses]
|
|
103
|
+
}, null, 8, [
|
|
104
|
+
"for",
|
|
105
|
+
"label-text",
|
|
106
|
+
"label-state",
|
|
107
|
+
"required",
|
|
108
|
+
"is-valid",
|
|
109
|
+
"label-classes"
|
|
110
|
+
])
|
|
111
|
+
], 2), (i.isValid || i.isValid === !1) && i.feedback ? (c(), t("div", {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: s(i.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"),
|
|
114
|
+
innerHTML: i.isValid === !1 ? i.feedback.invalid : i.feedback.valid
|
|
115
|
+
}, null, 10, y)) : e("", !0)], 2));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export { b as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Optional } from '@wikicasa-dev/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
dataCy?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue?: Optional<boolean>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_template: () => {
|
|
11
|
+
__VLS_Slots: {
|
|
12
|
+
leftLabel?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
rightLabel?: (props: {}) => any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
18
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: Optional<boolean>) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: Optional<boolean>) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, mergeModels as a, openBlock as o, renderSlot as s, unref as c, useModel as l, withCtx as u } from "vue";
|
|
2
|
+
import { SwitchRoot as d, SwitchThumb as f } from "reka-ui";
|
|
3
|
+
// lib/UIKit/BaseToggle.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, m = ["innerHTML"], h = /*@__PURE__*/ i({
|
|
5
|
+
__name: "BaseToggle",
|
|
6
|
+
props: /*@__PURE__*/ a({
|
|
7
|
+
label: {},
|
|
8
|
+
dataCy: {}
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
modelModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(i) {
|
|
18
|
+
let a = l(i, "modelValue");
|
|
19
|
+
return (l, h) => (o(), t("div", p, [
|
|
20
|
+
s(l.$slots, "leftLabel"),
|
|
21
|
+
r(c(d), {
|
|
22
|
+
modelValue: a.value,
|
|
23
|
+
"onUpdate:modelValue": h[0] ||= (e) => a.value = e,
|
|
24
|
+
"data-cy": i.dataCy,
|
|
25
|
+
class: "uikit-flex uikit-h-[20px] uikit-w-[40px] uikit-cursor-pointer uikit-rounded-full uikit-p-0 uikit-transition-[background] uikit-will-change-[background] focus-visible:uikit-outline-w-primary data-[state=checked]:uikit-bg-w-primary data-[state=unchecked]:uikit-bg-w-cultured"
|
|
26
|
+
}, {
|
|
27
|
+
default: u(() => [r(c(f), { class: "uikit-box-border uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })]),
|
|
28
|
+
_: 1
|
|
29
|
+
}, 8, ["modelValue", "data-cy"]),
|
|
30
|
+
l.$slots.leftLabel ? e("", !0) : s(l.$slots, "rightLabel", {}, () => [n("span", {
|
|
31
|
+
class: "uikit-ml-[10px]",
|
|
32
|
+
innerHTML: i.label
|
|
33
|
+
}, null, 8, m)], void 0, 0)
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export { h as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ClassTypeProp } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
theme?: {
|
|
4
|
+
color: "blue" | "white";
|
|
5
|
+
size: "sm" | "md" | "lg";
|
|
6
|
+
};
|
|
7
|
+
direction?: "top" | "bottom" | "left" | "right" | "top-center" | "bottom-center";
|
|
8
|
+
customTooltipClass?: "mail-alert" | "";
|
|
9
|
+
showTooltipContentManually?: boolean;
|
|
10
|
+
tooltipContentClasses?: ClassTypeProp;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_template: () => {
|
|
13
|
+
__VLS_Slots: {
|
|
14
|
+
trigger?: (props: {}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
content?: (props: {}) => any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
20
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
direction: "top" | "bottom" | "left" | "right" | "top-center" | "bottom-center";
|
|
22
|
+
theme: {
|
|
23
|
+
color: "blue" | "white";
|
|
24
|
+
size: "sm" | "md" | "lg";
|
|
25
|
+
};
|
|
26
|
+
customTooltipClass: "" | "mail-alert";
|
|
27
|
+
showTooltipContentManually: boolean;
|
|
28
|
+
tooltipContentClasses: string | Record<string, boolean> | import('./types').ClassType[] | import('./types').ClassType[] | null;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|