@wikicasa-dev/components 3.0.0-alpha.0 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/AccessibleSelect.d.ts +64 -0
- package/dist/UIKit/AccessibleSelect.js +4 -0
- package/dist/UIKit/AccessibleSelect.vue.js +217 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +17 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +23 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +12 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +22 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +21 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +25 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +14 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +4 -0
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +23 -0
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +44 -0
- package/dist/UIKit/Accordion/BaseAccordion.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +51 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +33 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +71 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +77 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +4 -0
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +270 -0
- package/dist/UIKit/BaseAlert.d.ts +24 -0
- package/dist/UIKit/BaseAlert.js +4 -0
- package/dist/UIKit/BaseAlert.vue.js +14 -0
- package/dist/UIKit/BaseAutocomplete.d.ts +62 -0
- package/dist/UIKit/BaseAutocomplete.js +4 -0
- package/dist/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/UIKit/BaseBadge.d.ts +20 -0
- package/dist/UIKit/BaseBadge.js +4 -0
- package/dist/UIKit/BaseBadge.vue.js +17 -0
- package/dist/UIKit/BaseBreadcrumb.d.ts +34 -0
- package/dist/UIKit/BaseBreadcrumb.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.vue.js +39 -0
- package/dist/UIKit/BaseButton.d.ts +75 -0
- package/dist/UIKit/BaseButton.js +4 -0
- package/dist/UIKit/BaseButton.vue.js +90 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +54 -0
- package/dist/UIKit/BaseComplexToggle.js +5 -0
- package/dist/UIKit/BaseComplexToggle.vue.js +77 -0
- package/dist/UIKit/BaseDropDown.d.ts +95 -0
- package/dist/UIKit/BaseDropDown.js +4 -0
- package/dist/UIKit/BaseDropDown.vue.js +171 -0
- package/dist/UIKit/BaseFloatingLabel.d.ts +24 -0
- package/dist/UIKit/BaseFloatingLabel.js +5 -0
- package/dist/UIKit/BaseFloatingLabel.vue.js +43 -0
- package/dist/UIKit/BaseInput.d.ts +63 -0
- package/dist/UIKit/BaseInput.js +5 -0
- package/dist/UIKit/BaseInput.vue.js +191 -0
- package/dist/UIKit/BaseModal.d.ts +72 -0
- package/dist/UIKit/BaseModal.js +4 -0
- package/dist/UIKit/BaseModal.vue.js +161 -0
- package/dist/UIKit/{BasePagination.vue.d.ts → BasePagination.d.ts} +13 -5
- package/dist/UIKit/BasePagination.js +4 -0
- package/dist/UIKit/BasePagination.vue.js +199 -0
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +47 -0
- package/dist/UIKit/BaseSelect/SelectItem.js +4 -0
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +38 -0
- package/dist/UIKit/{BaseSlider.vue.d.ts → BaseSlider.d.ts} +6 -7
- package/dist/UIKit/BaseSlider.js +5 -0
- package/dist/UIKit/BaseSlider.vue.js +152 -0
- package/dist/UIKit/BaseSnackbar.d.ts +64 -0
- package/dist/UIKit/BaseSnackbar.js +4 -0
- package/dist/UIKit/BaseSnackbar.vue.js +140 -0
- package/dist/UIKit/{BaseTextarea.vue.d.ts → BaseTextarea.d.ts} +10 -10
- package/dist/UIKit/BaseTextarea.js +5 -0
- package/dist/UIKit/BaseTextarea.vue.js +118 -0
- package/dist/UIKit/BaseToggle.d.ts +30 -0
- package/dist/UIKit/BaseToggle.js +4 -0
- package/dist/UIKit/BaseToggle.vue.js +37 -0
- package/dist/UIKit/BaseTooltip.d.ts +37 -0
- package/dist/UIKit/BaseTooltip.js +5 -0
- package/dist/UIKit/BaseTooltip.vue.js +31 -0
- package/dist/UIKit/BaseUploadFile.d.ts +40 -0
- package/dist/UIKit/BaseUploadFile.js +4 -0
- package/dist/UIKit/BaseUploadFile.vue.js +63 -0
- package/dist/UIKit/Card/BaseCard.d.ts +25 -0
- package/dist/UIKit/Card/BaseCard.js +4 -0
- package/dist/UIKit/Card/BaseCard.vue.js +24 -0
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +15 -0
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -0
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +15 -0
- package/dist/UIKit/Card/CardImagePrimitive.js +4 -0
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -0
- package/dist/UIKit/Card/CardRootPrimitive.d.ts +20 -0
- package/dist/UIKit/Card/CardRootPrimitive.js +4 -0
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +23 -0
- package/dist/UIKit/Card/type.d.ts +3 -0
- package/dist/UIKit/Card/type.js +3 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +52 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.js +4 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +74 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.js +4 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +131 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +45 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +55 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +31 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +37 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +26 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +4 -0
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +38 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.d.ts +4 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +4 -0
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +19 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +90 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +4 -0
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +33 -0
- package/dist/UIKit/Radio/RadioButton.d.ts +38 -0
- package/dist/UIKit/Radio/RadioButton.js +4 -0
- package/dist/UIKit/Radio/RadioButton.vue.js +51 -0
- package/dist/UIKit/Radio/RadioGroup.d.ts +64 -0
- package/dist/UIKit/Radio/RadioGroup.js +4 -0
- package/dist/UIKit/Radio/RadioGroup.vue.js +67 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +38 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +42 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +17 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +46 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +28 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +4 -0
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +32 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +15 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +5 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +11 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +4 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -0
- package/dist/UIKit/Slider/{SimpleSlider.vue.d.ts → SimpleSlider.d.ts} +6 -6
- package/dist/UIKit/Slider/SimpleSlider.js +5 -0
- package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -0
- package/dist/UIKit/StaticSpinner.d.ts +7 -0
- package/dist/UIKit/StaticSpinner.js +5 -0
- package/dist/UIKit/StaticSpinner.vue.js +24 -0
- package/dist/UIKit/Tab/BaseTab.d.ts +21 -0
- package/dist/UIKit/Tab/BaseTab.js +4 -0
- package/dist/UIKit/Tab/BaseTab.vue.js +14 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +14 -0
- package/dist/UIKit/Tab/BaseTabList.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +22 -0
- package/dist/UIKit/Tab/BaseTabPanel.js +4 -0
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -0
- package/dist/UIKit/Tab/BaseTabView.d.ts +49 -0
- package/dist/UIKit/Tab/BaseTabView.js +4 -0
- package/dist/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +35 -0
- package/dist/UIKit/Tab/v2/BaseTabs.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +42 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.d.ts +14 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +25 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.d.ts +16 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +28 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.d.ts +14 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +24 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.d.ts +25 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +4 -0
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +25 -0
- package/dist/UIKit/frameUtils.d.ts +14 -0
- package/dist/UIKit/frameUtils.js +5 -0
- package/dist/UIKit/types.d.ts +10 -52
- package/dist/UIKit/types.js +0 -0
- package/dist/UIKit/useScrollLock.d.ts +4 -0
- package/dist/UIKit/useScrollLock.js +27 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/chart/DoughnutChart.d.ts +8 -0
- package/dist/chart/DoughnutChart.js +4 -0
- package/dist/chart/DoughnutChart.vue.js +25 -0
- package/dist/chart/LineChart.d.ts +11 -0
- package/dist/chart/LineChart.js +4 -0
- package/dist/chart/LineChart.vue.js +27 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +24 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.js +4 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/components/IntersectionObserver/{IntersectionObserver.vue.d.ts → IntersectionObserver.d.ts} +16 -19
- package/dist/components/IntersectionObserver/IntersectionObserver.js +4 -0
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +50 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +21 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +4 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +27 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +4 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +24 -0
- package/dist/components/IntersectionObserver/v2/types.d.ts +4 -0
- package/dist/components/IntersectionObserver/v2/types.js +3 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.d.ts +9 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -0
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.d.ts +9 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +30 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +22 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.d.ts +69 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +98 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.d.ts +18 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.d.ts +62 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.js +4 -0
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.vue.js +56 -0
- package/dist/components/carousel/Primitive/deferredImages.d.ts +17 -0
- package/dist/components/carousel/Primitive/deferredImages.js +10 -0
- package/dist/components/carousel/SwiperCarousel.d.ts +57 -0
- package/dist/components/carousel/SwiperCarousel.js +5 -0
- package/dist/components/carousel/SwiperCarousel.vue.js +197 -0
- package/dist/components/carousel/SwiperSlide.d.ts +15 -0
- package/dist/components/carousel/SwiperSlide.js +9 -0
- package/dist/composables/mock.d.ts +25 -0
- package/dist/composables/mock.js +50 -0
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +28 -0
- package/dist/composables/useValidator.js +5 -0
- package/dist/css/AccessibleSelect.css +1 -0
- package/dist/css/BaseAccordionItem.css +1 -0
- package/dist/css/BaseAlert.css +1 -0
- package/dist/css/BaseAutocomplete.css +1 -0
- package/dist/css/BaseBadge.css +1 -0
- package/dist/css/BaseCard.css +1 -0
- package/dist/css/BaseComplexToggle.css +1 -0
- package/dist/css/BaseDropDown.css +1 -0
- package/dist/css/BaseFloatingLabel.css +1 -0
- package/dist/css/BaseInput.css +1 -0
- package/dist/css/BaseModal.css +1 -0
- package/dist/css/BaseShimmerLoader.css +1 -0
- package/dist/css/BaseSlider.css +1 -0
- package/dist/css/BaseSnackbar.css +1 -0
- package/dist/css/BaseTabs.css +1 -0
- package/dist/css/BaseTabsIndicator.css +1 -0
- package/dist/css/BaseTextarea.css +1 -0
- package/dist/css/BaseTooltip.css +1 -0
- package/dist/css/CheckboxBtn.css +1 -0
- package/dist/css/ClearableAutocomplete.css +1 -0
- package/dist/css/RadioButtonItem.css +1 -0
- package/dist/css/SimpleSlider.css +1 -0
- package/dist/css/StaticSpinner.css +1 -0
- package/dist/css/SwiperCarousel.css +1 -0
- package/dist/css/SwiperNavigationPrimitive.css +1 -0
- package/dist/css/SwiperPaginationPrimitive.css +1 -0
- package/dist/css/SwiperRootPrimitive.css +1 -0
- package/dist/css/SwiperSlideImagePrimitive.css +1 -0
- package/dist/css/swiper-free-mode.css +1 -0
- package/dist/css/swiper-navigation.css +1 -0
- package/dist/css/swiper-pagination.css +1 -0
- package/dist/css/swiper-swiper.css +1 -0
- package/dist/css/swiper-zoom.css +1 -0
- package/dist/css/tailwind.css +1 -0
- package/dist/css/tokens.css +1 -0
- package/dist/docs/AccessibleSelect.md +123 -0
- package/dist/docs/AccordionContentPrimitive.md +70 -0
- package/dist/docs/AccordionHeaderPrimitive.md +70 -0
- package/dist/docs/AccordionItemPrimitive.md +98 -0
- package/dist/docs/AccordionTriggerPrimitive.md +71 -0
- package/dist/docs/BaseAccordion.md +98 -0
- package/dist/docs/BaseAccordionItem.md +102 -0
- package/dist/docs/BaseAlert.md +85 -0
- package/dist/docs/BaseAutocomplete.md +127 -0
- package/dist/docs/BaseBadge.md +94 -0
- package/dist/docs/BaseBreadcrumb.md +83 -0
- package/dist/docs/BaseButton.md +129 -0
- package/dist/docs/BaseCard.md +112 -0
- package/dist/docs/BaseComplexToggle.md +101 -0
- package/dist/docs/BaseDropDown.md +124 -0
- package/dist/docs/BaseFloatingLabel.md +91 -0
- package/dist/docs/BaseInput.md +132 -0
- package/dist/docs/BaseModal.md +131 -0
- package/dist/docs/BasePagination.md +109 -0
- package/dist/docs/BaseShimmerLoader.md +88 -0
- package/dist/docs/BaseSlider.md +89 -0
- package/dist/docs/BaseSnackbar.md +122 -0
- package/dist/docs/BaseTab.md +84 -0
- package/dist/docs/BaseTabView.md +90 -0
- package/dist/docs/BaseTabs.md +118 -0
- package/dist/docs/BaseTabsContent.md +71 -0
- package/dist/docs/BaseTabsIndicator.md +75 -0
- package/dist/docs/BaseTabsList.md +76 -0
- package/dist/docs/BaseTabsTrigger.md +70 -0
- package/dist/docs/BaseTextarea.md +101 -0
- package/dist/docs/BaseToggle.md +88 -0
- package/dist/docs/BaseTooltip.md +89 -0
- package/dist/docs/BaseUploadFile.md +96 -0
- package/dist/docs/CardDescriptionPrimitive.md +73 -0
- package/dist/docs/CardImagePrimitive.md +73 -0
- package/dist/docs/CardRootPrimitive.md +101 -0
- package/dist/docs/CheckboxBtn.md +98 -0
- package/dist/docs/CheckboxButtonGroup.md +115 -0
- package/dist/docs/CheckboxGroup.md +102 -0
- package/dist/docs/CheckboxGroupItemPrimitive.md +105 -0
- package/dist/docs/CheckboxGroupPrimitive.md +107 -0
- package/dist/docs/ClearableAutocomplete.md +137 -0
- package/dist/docs/DoughnutChart.md +88 -0
- package/dist/docs/INDEX.md +133 -0
- package/dist/docs/IntersectionObservable.md +78 -0
- package/dist/docs/IntersectionObserver.md +84 -0
- package/dist/docs/IntersectionObserverProvider.md +98 -0
- package/dist/docs/IntersectionObserverTarget.md +73 -0
- package/dist/docs/LineChart.md +98 -0
- package/dist/docs/ProgressIndicatorPrimitive.md +70 -0
- package/dist/docs/ProgressRootPrimitive.md +106 -0
- package/dist/docs/RadioButton.md +86 -0
- package/dist/docs/RadioButtonGroup.md +107 -0
- package/dist/docs/RadioButtonItem.md +103 -0
- package/dist/docs/RadioGroup.md +95 -0
- package/dist/docs/RadioGroupItemPrimitive.md +102 -0
- package/dist/docs/SelectItem.md +100 -0
- package/dist/docs/ShimmerMultiLine.md +79 -0
- package/dist/docs/SimpleSlider.md +82 -0
- package/dist/docs/StaticSpinner.md +78 -0
- package/dist/docs/SwiperCarousel.md +128 -0
- package/dist/docs/SwiperNavigationPrimitive.md +85 -0
- package/dist/docs/SwiperPaginationPrimitive.md +82 -0
- package/dist/docs/SwiperPrimitive.md +77 -0
- package/dist/docs/SwiperRootPrimitive.md +125 -0
- package/dist/docs/SwiperSlide.md +75 -0
- package/dist/docs/SwiperSlideImagePrimitive.md +100 -0
- package/dist/docs/SwiperThumbnailPrimitive.md +96 -0
- package/dist/docs/TOKENS.md +50 -0
- package/dist/docs/agent-index.md +86 -0
- package/dist/index.d.ts +68 -45
- package/dist/index.js +68 -86
- package/dist/lazyModules/ChartJs/Chart.d.ts +8 -0
- package/dist/lazyModules/ChartJs/Chart.js +4 -0
- package/dist/lazyModules/ChartJs/DoughnutChart/core.d.ts +2 -0
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +4 -0
- package/dist/lazyModules/ChartJs/LineChart/cartesian.d.ts +2 -0
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +4 -0
- package/dist/lazyModules/ChartJs/LineChart/core.d.ts +2 -0
- package/dist/lazyModules/ChartJs/LineChart/core.js +4 -0
- package/dist/lazyModules/ChartJs/Plugins/Legend.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +3 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.d.ts +0 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -0
- package/dist/lazyModules/ChartJs/Plugins/Title.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Title.js +3 -0
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.d.ts +1 -0
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +3 -0
- package/dist/lazyModules/Swiper/Autoplay/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -0
- package/dist/lazyModules/Swiper/Autoplay/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Autoplay/index.js +2 -0
- package/dist/lazyModules/Swiper/Controller/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Controller/factory.js +6 -0
- package/dist/lazyModules/Swiper/Controller/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Controller/index.js +2 -0
- package/dist/lazyModules/Swiper/FreeMode/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -0
- package/dist/lazyModules/Swiper/FreeMode/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/FreeMode/index.js +2 -0
- package/dist/lazyModules/Swiper/Keyboard/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -0
- package/dist/lazyModules/Swiper/Keyboard/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Keyboard/index.js +2 -0
- package/dist/lazyModules/Swiper/Navigation/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Navigation/factory.js +6 -0
- package/dist/lazyModules/Swiper/Navigation/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Navigation/index.js +2 -0
- package/dist/lazyModules/Swiper/Pagination/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Pagination/factory.js +6 -0
- package/dist/lazyModules/Swiper/Pagination/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Pagination/index.js +2 -0
- package/dist/lazyModules/Swiper/Thumbs/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -0
- package/dist/lazyModules/Swiper/Thumbs/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Thumbs/index.js +2 -0
- package/dist/lazyModules/Swiper/Zoom/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/Zoom/factory.js +6 -0
- package/dist/lazyModules/Swiper/Zoom/index.d.ts +1 -0
- package/dist/lazyModules/Swiper/Zoom/index.js +2 -0
- package/dist/lazyModules/Swiper/factory.d.ts +3 -0
- package/dist/lazyModules/Swiper/factory.js +9 -0
- package/dist/lazyModules/Swiper/index.d.ts +20 -0
- package/dist/lazyModules/Swiper/index.js +5 -0
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -0
- package/dist/lazyModules/Swiper/types.d.ts +5 -0
- package/dist/lazyModules/Swiper/types.js +0 -0
- package/dist/lazyModules/VueChartJs/Doughnut/factory.d.ts +7 -0
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -0
- package/dist/lazyModules/VueChartJs/Doughnut/index.d.ts +9 -0
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +4 -0
- package/dist/lazyModules/VueChartJs/Line/factory.d.ts +7 -0
- package/dist/lazyModules/VueChartJs/Line/factory.js +8 -0
- package/dist/lazyModules/VueChartJs/Line/index.d.ts +9 -0
- package/dist/lazyModules/VueChartJs/Line/index.js +4 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/index.js +0 -0
- package/dist/types.js +0 -1
- package/dist/utils.js +3 -5
- package/package.json +73 -42
- package/dist/AccessibleSelect.js +0 -4
- package/dist/BaseAccordion.js +0 -4
- package/dist/BaseAccordionBtn.js +0 -4
- package/dist/BaseAccordionContent.js +0 -4
- package/dist/BaseAccordionItem.js +0 -4
- package/dist/BaseAlert.js +0 -4
- package/dist/BaseAutocomplete.js +0 -4
- package/dist/BaseBadge.js +0 -4
- package/dist/BaseBreadcrumb.js +0 -4
- package/dist/BaseButton.js +0 -4
- package/dist/BaseCard.js +0 -38
- package/dist/BaseComplexToggle.js +0 -107
- package/dist/BaseDropDown.js +0 -4
- package/dist/BaseFloatingLabel.js +0 -41
- package/dist/BaseIcon.js +0 -28
- package/dist/BaseInput.js +0 -212
- package/dist/BaseModal.js +0 -4
- package/dist/BasePagination.js +0 -4
- package/dist/BasePaper.js +0 -14
- package/dist/BaseShimmerLoader.js +0 -22
- package/dist/BaseSlider.js +0 -208
- package/dist/BaseSnackbar.js +0 -82
- package/dist/BaseTab.js +0 -4
- package/dist/BaseTabList.js +0 -4
- package/dist/BaseTabPanel.js +0 -4
- package/dist/BaseTabView.js +0 -4
- package/dist/BaseTextarea.js +0 -128
- package/dist/BaseToggle.js +0 -43
- package/dist/BaseTooltip.js +0 -42
- package/dist/BaseUploadFile.js +0 -4
- package/dist/CheckboxBtn.js +0 -76
- package/dist/CheckboxGroup.js +0 -4
- package/dist/DoughnutChart.js +0 -4
- package/dist/IntersectionObservable.js +0 -4
- package/dist/IntersectionObserver.js +0 -4
- package/dist/LineChart.js +0 -4
- package/dist/RadioButton.js +0 -4
- package/dist/RadioGroup.js +0 -4
- package/dist/SelectItem.js +0 -4
- package/dist/ShimmerMultiLine.js +0 -4
- package/dist/SimpleSlider.js +0 -83
- package/dist/StaticSpinner.js +0 -28
- package/dist/SwiperCarousel.js +0 -5
- package/dist/SwiperSlide.js +0 -14
- package/dist/UIKit/AccessibleSelect.vue.d.ts +0 -55
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -32
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +0 -34
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -30
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +0 -60
- package/dist/UIKit/BaseAlert.vue.d.ts +0 -26
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +0 -48
- package/dist/UIKit/BaseBadge.vue.d.ts +0 -22
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +0 -35
- package/dist/UIKit/BaseButton.vue.d.ts +0 -46
- package/dist/UIKit/BaseCard.vue.d.ts +0 -29
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +0 -47
- package/dist/UIKit/BaseDropDown.vue.d.ts +0 -81
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +0 -17
- package/dist/UIKit/BaseIcon.vue.d.ts +0 -11
- package/dist/UIKit/BaseInput.vue.d.ts +0 -68
- package/dist/UIKit/BaseModal.vue.d.ts +0 -63
- package/dist/UIKit/BasePaper.vue.d.ts +0 -2
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +0 -38
- package/dist/UIKit/BaseSnackbar.vue.d.ts +0 -24
- package/dist/UIKit/BaseToggle.vue.d.ts +0 -32
- package/dist/UIKit/BaseTooltip.vue.d.ts +0 -38
- package/dist/UIKit/BaseUploadFile.vue.d.ts +0 -42
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +0 -53
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -71
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +0 -27
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +0 -54
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +0 -21
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +0 -63
- package/dist/UIKit/StaticSpinner.vue.d.ts +0 -6
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +0 -23
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +0 -14
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +0 -24
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +0 -27
- package/dist/assets/BaseAlert.css +0 -1
- package/dist/assets/BaseBadge.css +0 -1
- package/dist/assets/BaseCard.css +0 -1
- package/dist/assets/BaseComplexToggle.css +0 -1
- package/dist/assets/BaseFloatingLabel.css +0 -1
- package/dist/assets/BaseIcon.css +0 -1
- package/dist/assets/BaseInput.css +0 -1
- package/dist/assets/BaseModal.css +0 -1
- package/dist/assets/BasePaper.css +0 -1
- package/dist/assets/BaseShimmerLoader.css +0 -1
- package/dist/assets/BaseSlider.css +0 -1
- package/dist/assets/BaseSnackbar.css +0 -1
- package/dist/assets/BaseTextarea.css +0 -1
- package/dist/assets/BaseToggle.css +0 -1
- package/dist/assets/BaseTooltip.css +0 -1
- package/dist/assets/CheckboxBtn.css +0 -1
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/assets/StaticSpinner.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/chart/DoughnutChart.vue.d.ts +0 -7
- package/dist/chart/LineChart.vue.d.ts +0 -19
- package/dist/chart/composables/useChartjsModules.d.ts +0 -10
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.QU1FSgY0.js +0 -246
- package/dist/chunks/ArrowIcon.Bq6Xr3uH.js +0 -28
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js +0 -32
- package/dist/chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DEk3SXLJ.js +0 -60
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Qp_TWYFE.js +0 -34
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.BJB5DnDs.js +0 -143
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +0 -19
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.S_XFg2zV.js +0 -202
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.DvAI34Oa.js +0 -19
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BrzeVW2_.js +0 -58
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.DHwyd5Gb.js +0 -66
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.OKB0gEpo.js +0 -137
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.a2qGyPhV.js +0 -150
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DdFMVFIO.js +0 -164
- package/dist/chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js +0 -15
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CxrS-Vq6.js +0 -43
- package/dist/chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js +0 -24
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGTsSVEG.js +0 -105
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.BL98w2D8.js +0 -71
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.B_9CFhd2.js +0 -111
- package/dist/chunks/CloseIcon.BZ4U3aiI.js +0 -38
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js +0 -27
- package/dist/chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js +0 -24
- package/dist/chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js +0 -52
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +0 -42
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.CxVJji0G.js +0 -58
- package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BNKSEicl.js +0 -62
- package/dist/chunks/SelectItem.vue_vue_type_script_setup_true_lang.jB3LVM3c.js +0 -41
- package/dist/chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CPUobRgG.js +0 -29
- package/dist/chunks/SwiperCarousel.BheiaKKw.js +0 -748
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/index.BJP9rQkU.js +0 -887
- package/dist/chunks/polyline.DjpLdMaW.js +0 -5256
- package/dist/chunks/useBreakpoints.BXk8Xcw3.js +0 -5189
- package/dist/city-640x359.jpg +0 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +0 -29
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +0 -57
- package/dist/components/carousel/SwiperSlide.vue.d.ts +0 -17
- package/dist/favicon.ico +0 -0
- package/dist/useChartjsModules.js +0 -48
- package/dist/useFloatingLabel.js +0 -33
- package/dist/useValidator.js +0 -8
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Nullable, Optional } from '@wikicasa-dev/types';
|
|
2
|
+
import { ClassTypeProp } from '../types';
|
|
3
|
+
export type RadioButtonType<TID = string | number | null, TPayload = unknown> = {
|
|
4
|
+
id?: TID;
|
|
5
|
+
label: string;
|
|
6
|
+
payload?: TPayload;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare const __VLS_export: <TID extends string | number | null, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
12
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
13
|
+
radioValues?: RadioButtonType<TID, TPayload>[];
|
|
14
|
+
dataCy?: string;
|
|
15
|
+
radioContainerClasses?: ClassTypeProp;
|
|
16
|
+
} & {
|
|
17
|
+
resetRadio?: Optional<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* If true, we will reinitialized the inner data of the component
|
|
20
|
+
*/
|
|
21
|
+
refresh?: boolean;
|
|
22
|
+
}) & {
|
|
23
|
+
"onUpdate:modelValue"?: ((args_0: Nullable<RadioButtonType<TID, TPayload>>) => any) | undefined;
|
|
24
|
+
"onUpdate:refresh"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
"onUpdate:resetRadio"?: ((value: Optional<boolean>) => any) | undefined;
|
|
26
|
+
}> & (typeof globalThis extends {
|
|
27
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
28
|
+
} ? P : {});
|
|
29
|
+
expose: (exposed: {}) => void;
|
|
30
|
+
attrs: any;
|
|
31
|
+
slots: {
|
|
32
|
+
default?: (props: {
|
|
33
|
+
handleClick: (elem: RadioButtonType<TID, TPayload>) => void;
|
|
34
|
+
activeValue: {
|
|
35
|
+
id?: import('vue').UnwrapRef<TID> | undefined;
|
|
36
|
+
label: string;
|
|
37
|
+
payload?: import('vue').UnwrapRef<TPayload> | undefined;
|
|
38
|
+
active?: boolean | undefined;
|
|
39
|
+
} | null;
|
|
40
|
+
reset: () => void;
|
|
41
|
+
isActive: (elem: RadioButtonType<TID, TPayload>) => boolean;
|
|
42
|
+
}) => any;
|
|
43
|
+
} & {
|
|
44
|
+
radio_elements?: (props: {
|
|
45
|
+
handleClick: (elem: RadioButtonType<TID, TPayload>) => void;
|
|
46
|
+
activeValue: {
|
|
47
|
+
id?: import('vue').UnwrapRef<TID> | undefined;
|
|
48
|
+
label: string;
|
|
49
|
+
payload?: import('vue').UnwrapRef<TPayload> | undefined;
|
|
50
|
+
active?: boolean | undefined;
|
|
51
|
+
} | null;
|
|
52
|
+
reset: () => void;
|
|
53
|
+
isActive: (elem: RadioButtonType<TID, TPayload>) => boolean;
|
|
54
|
+
}) => any;
|
|
55
|
+
};
|
|
56
|
+
emit: ((evt: "update:modelValue", args_0: Nullable<RadioButtonType<TID, TPayload>>) => void) & (((event: "update:refresh", value: boolean) => void) & ((event: "update:resetRadio", value: Optional<boolean>) => void));
|
|
57
|
+
}>) => import('vue').VNode & {
|
|
58
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
59
|
+
};
|
|
60
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
61
|
+
[K in keyof T]: T[K];
|
|
62
|
+
} : {
|
|
63
|
+
[K in keyof T as K]: T[K];
|
|
64
|
+
}) & {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createElementBlock as n, createElementVNode as r, defineComponent as i, mergeModels as a, normalizeClass as o, openBlock as s, ref as c, renderList as l, renderSlot as u, useModel as d, watch as f } from "vue";
|
|
2
|
+
import p from "./RadioButton.js";
|
|
3
|
+
// lib/UIKit/Radio/RadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var m = ["data-cy"], h = /*@__PURE__*/ i({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "RadioGroup",
|
|
7
|
+
props: /*@__PURE__*/ a({
|
|
8
|
+
radioValues: { default: () => [] },
|
|
9
|
+
dataCy: {},
|
|
10
|
+
radioContainerClasses: {}
|
|
11
|
+
}, {
|
|
12
|
+
resetRadio: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
resetRadioModifiers: {},
|
|
17
|
+
refresh: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
refreshModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: /*@__PURE__*/ a(["update:modelValue"], ["update:resetRadio", "update:refresh"]),
|
|
24
|
+
setup(i, { emit: a }) {
|
|
25
|
+
let h = a, g = d(i, "resetRadio"), _ = d(i, "refresh"), v = c(null), y = (e) => {
|
|
26
|
+
v.value = e, h("update:modelValue", e);
|
|
27
|
+
}, b = () => {
|
|
28
|
+
v.value = null, g.value = !1, h("update:modelValue", null);
|
|
29
|
+
}, x = (e) => v.value ? `${v.value.id}` == `${e.id}` : !1, S = () => {
|
|
30
|
+
for (let e of i.radioValues) if (e.active) {
|
|
31
|
+
y(e);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return S(), f(g, (e) => {
|
|
36
|
+
e && b();
|
|
37
|
+
}), f(_, (e) => {
|
|
38
|
+
e && (S(), _.value = !1);
|
|
39
|
+
}), (a, c) => u(a.$slots, "default", {
|
|
40
|
+
handleClick: y,
|
|
41
|
+
activeValue: v.value,
|
|
42
|
+
reset: b,
|
|
43
|
+
isActive: x
|
|
44
|
+
}, () => [r("div", {
|
|
45
|
+
class: o(["radio-group-container", a.$attrs.class]),
|
|
46
|
+
"data-cy": i.dataCy
|
|
47
|
+
}, [u(a.$slots, "radio_elements", {
|
|
48
|
+
handleClick: y,
|
|
49
|
+
activeValue: v.value,
|
|
50
|
+
reset: b,
|
|
51
|
+
isActive: x
|
|
52
|
+
}, () => [(s(!0), n(e, null, l(i.radioValues, (e, n) => (s(), t(p, {
|
|
53
|
+
id: e.id,
|
|
54
|
+
key: n,
|
|
55
|
+
class: o(i.radioContainerClasses),
|
|
56
|
+
label: `${e.label}`,
|
|
57
|
+
"model-value": `${e.id}` == `${v.value?.id}`,
|
|
58
|
+
onChange: c[0] ||= (e) => y(e)
|
|
59
|
+
}, null, 8, [
|
|
60
|
+
"id",
|
|
61
|
+
"class",
|
|
62
|
+
"label",
|
|
63
|
+
"model-value"
|
|
64
|
+
]))), 128))])], 10, m)]);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export { h as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { RadioGroupRootProps, RadioGroupItemProps } from 'reka-ui';
|
|
2
|
+
type AcceptableValue = RadioGroupRootProps["modelValue"];
|
|
3
|
+
export type RadioButtonItem<TValue extends AcceptableValue> = {
|
|
4
|
+
dataCy?: string;
|
|
5
|
+
value: TValue;
|
|
6
|
+
required?: RadioGroupItemProps["required"];
|
|
7
|
+
as?: RadioGroupItemProps["as"];
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
export interface RadioButtonGroupProps<TValue extends AcceptableValue> extends Omit<RadioGroupRootProps, "modelValue" | "defaultValue"> {
|
|
11
|
+
dataCy?: string;
|
|
12
|
+
items?: RadioButtonItem<TValue>[];
|
|
13
|
+
defaultValue?: TValue;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare const __VLS_export: <T extends AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
18
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(RadioButtonGroupProps<T> & {
|
|
19
|
+
modelValue?: T;
|
|
20
|
+
}) & {
|
|
21
|
+
"onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
|
|
22
|
+
}> & (typeof globalThis extends {
|
|
23
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
24
|
+
} ? P : {});
|
|
25
|
+
expose: (exposed: {}) => void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: {
|
|
28
|
+
default?: (props: {}) => any;
|
|
29
|
+
};
|
|
30
|
+
emit: (event: "update:modelValue", value: T | undefined) => void;
|
|
31
|
+
}>) => import('vue').VNode & {
|
|
32
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} : {
|
|
37
|
+
[K in keyof T as K]: T[K];
|
|
38
|
+
}) & {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createElementBlock as n, createPropsRestProxy as r, createTextVNode as i, defineComponent as a, mergeModels as o, mergeProps as s, openBlock as c, renderList as l, renderSlot as u, toDisplayString as d, unref as f, useModel as p, withCtx as m } from "vue";
|
|
2
|
+
import { RadioGroupRoot as h } from "reka-ui";
|
|
3
|
+
import g from "./RadioButtonItem.js";
|
|
4
|
+
// lib/UIKit/Radio/v2/RadioButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _ = /*@__PURE__*/ a({
|
|
6
|
+
__name: "RadioButtonGroup",
|
|
7
|
+
props: /*@__PURE__*/ o({
|
|
8
|
+
dataCy: {},
|
|
9
|
+
items: { default: () => [] },
|
|
10
|
+
defaultValue: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
orientation: {},
|
|
13
|
+
dir: {},
|
|
14
|
+
loop: { type: Boolean },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: { type: [
|
|
17
|
+
String,
|
|
18
|
+
Object,
|
|
19
|
+
Function
|
|
20
|
+
] },
|
|
21
|
+
name: {},
|
|
22
|
+
required: { type: Boolean }
|
|
23
|
+
}, {
|
|
24
|
+
modelValue: {},
|
|
25
|
+
modelModifiers: {}
|
|
26
|
+
}),
|
|
27
|
+
emits: ["update:modelValue"],
|
|
28
|
+
setup(a) {
|
|
29
|
+
let o = r(a, ["dataCy", "items"]), _ = p(a, "modelValue");
|
|
30
|
+
return (r, p) => (c(), t(f(h), s({ "data-cy": a.dataCy }, o, {
|
|
31
|
+
modelValue: _.value,
|
|
32
|
+
"onUpdate:modelValue": p[0] ||= (e) => _.value = e
|
|
33
|
+
}), {
|
|
34
|
+
default: m(() => [u(r.$slots, "default", {}, () => [(c(!0), n(e, null, l(a.items, ({ label: e, ...n }) => (c(), t(g, s({ ref_for: !0 }, n, { key: `radio-item-${n.value}` }), {
|
|
35
|
+
default: m(() => [i(d(e), 1)]),
|
|
36
|
+
_: 2
|
|
37
|
+
}, 1040))), 128))])]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16, ["data-cy", "modelValue"]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export { _ as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RadioGroupItemProps } from 'reka-ui';
|
|
2
|
+
import { ClassTypeProp } from '../../types';
|
|
3
|
+
export interface RadioButtonItemProps extends RadioGroupItemProps {
|
|
4
|
+
itemClasses?: ClassTypeProp;
|
|
5
|
+
labelClasses?: ClassTypeProp;
|
|
6
|
+
dataCy?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<RadioButtonItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioButtonItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
}>;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createPropsRestProxy as r, createVNode as i, defineComponent as a, mergeProps as o, normalizeClass as s, openBlock as c, renderSlot as l, unref as u, useId as d, withCtx as f } from "vue";
|
|
2
|
+
import { RadioGroupIndicator as p, RadioGroupItem as m } from "reka-ui";
|
|
3
|
+
import '../../../css/RadioButtonItem.css';// lib/UIKit/Radio/v2/RadioButtonItem.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8px]" }, g = ["for"], _ = /*@__PURE__*/ a({
|
|
5
|
+
__name: "RadioButtonItem",
|
|
6
|
+
props: {
|
|
7
|
+
itemClasses: {},
|
|
8
|
+
labelClasses: {},
|
|
9
|
+
dataCy: {},
|
|
10
|
+
id: {},
|
|
11
|
+
value: {},
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: { type: [
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Function
|
|
18
|
+
] },
|
|
19
|
+
name: {},
|
|
20
|
+
required: { type: Boolean }
|
|
21
|
+
},
|
|
22
|
+
setup(a) {
|
|
23
|
+
let _ = r(a, [
|
|
24
|
+
"itemClasses",
|
|
25
|
+
"labelClasses",
|
|
26
|
+
"dataCy"
|
|
27
|
+
]), v = d(), y = e(() => _.id ?? v);
|
|
28
|
+
return (e, r) => (c(), n("div", h, [i(u(m), o(_, {
|
|
29
|
+
id: y.value,
|
|
30
|
+
"data-cy": a.dataCy,
|
|
31
|
+
class: ["uikit-radio-group-item uikit-inline-flex uikit-size-[18px] uikit-shrink-0 uikit-cursor-default uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white uikit-p-0 uikit-shadow-sm uikit-outline-none focus:uikit-border-2 focus:uikit-border-w-primary", a.itemClasses]
|
|
32
|
+
}), {
|
|
33
|
+
default: f(() => [i(u(p), { class: "uikit-radio-group-indicator uikit-size-[12px] uikit-rounded-[50%] uikit-bg-w-primary" })]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 16, [
|
|
36
|
+
"id",
|
|
37
|
+
"data-cy",
|
|
38
|
+
"class"
|
|
39
|
+
]), e.$slots.default ? (c(), n("label", {
|
|
40
|
+
key: 0,
|
|
41
|
+
for: y.value,
|
|
42
|
+
class: s(a.labelClasses)
|
|
43
|
+
}, [l(e.$slots, "default")], 10, g)) : t("", !0)]));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export { _ as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RadioGroupItemProps } from 'reka-ui';
|
|
2
|
+
export interface RadioGroupItemPrimitiveProps extends RadioGroupItemProps {
|
|
3
|
+
dataCy?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<RadioGroupItemPrimitiveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
select: (args_0: CustomEvent<{
|
|
9
|
+
originalEvent: MouseEvent;
|
|
10
|
+
value?: import('reka-ui').AcceptableValue;
|
|
11
|
+
}>) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<RadioGroupItemPrimitiveProps> & Readonly<{
|
|
13
|
+
onSelect?: ((args_0: CustomEvent<{
|
|
14
|
+
originalEvent: MouseEvent;
|
|
15
|
+
value?: import('reka-ui').AcceptableValue;
|
|
16
|
+
}>) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
18
|
+
default?: (props: {
|
|
19
|
+
checked: boolean;
|
|
20
|
+
required: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
}) => any;
|
|
23
|
+
}>;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createBlock as e, createPropsRestProxy as t, defineComponent as n, guardReactiveProps as r, mergeProps as i, normalizeProps as a, openBlock as o, renderSlot as s, unref as c, withCtx as l } from "vue";
|
|
2
|
+
import { RadioGroupItem as u } from "reka-ui";
|
|
3
|
+
// lib/UIKit/Radio/v2/RadioGroupItemPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = /*@__PURE__*/ n({
|
|
5
|
+
__name: "RadioGroupItemPrimitive",
|
|
6
|
+
props: {
|
|
7
|
+
dataCy: {},
|
|
8
|
+
id: {},
|
|
9
|
+
value: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: { type: [
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Function
|
|
16
|
+
] },
|
|
17
|
+
name: {},
|
|
18
|
+
required: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["select"],
|
|
21
|
+
setup(n, { emit: d }) {
|
|
22
|
+
let f = t(n, ["dataCy"]), p = d;
|
|
23
|
+
return (t, d) => (o(), e(c(u), i(f, {
|
|
24
|
+
"data-cy": n.dataCy,
|
|
25
|
+
onSelect: d[0] ||= (e) => p("select", e)
|
|
26
|
+
}), {
|
|
27
|
+
default: l((e) => [s(t.$slots, "default", a(r(e)))]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16, ["data-cy"]));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export { d as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClassTypeProp } from '../types';
|
|
2
|
+
export type BaseShimmerLoaderProps = {
|
|
3
|
+
shimmerClasses?: ClassTypeProp;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<BaseShimmerLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseShimmerLoaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
}>;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a } from "vue";
|
|
2
|
+
import '../../css/BaseShimmerLoader.css';// lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var o = { class: "uikit-relative uikit-overflow-hidden uikit-bg-w-lavender" }, s = ["data-enabled"], c = /*@__PURE__*/ n({
|
|
4
|
+
__name: "BaseShimmerLoader",
|
|
5
|
+
props: {
|
|
6
|
+
shimmerClasses: { default: "" },
|
|
7
|
+
enabled: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !0
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
return (c, l) => (i(), e("div", o, [t("div", {
|
|
14
|
+
class: r(["shimmer uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-h-full", n.shimmerClasses]),
|
|
15
|
+
"data-enabled": n.enabled || void 0
|
|
16
|
+
}, null, 10, s), a(c.$slots, "default", {}, void 0, !0)]));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { c as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseShimmerLoaderProps } from './BaseShimmerLoader';
|
|
2
|
+
import { ClassTypeProp } from '../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
lines?: number;
|
|
5
|
+
randomLength?: boolean;
|
|
6
|
+
shimmerClasses?: ClassTypeProp;
|
|
7
|
+
inheritHeight?: boolean;
|
|
8
|
+
} & Pick<BaseShimmerLoaderProps, "enabled">;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createElementBlock as n, defineComponent as r, normalizeClass as i, normalizeStyle as a, openBlock as o, renderList as s } from "vue";
|
|
2
|
+
import c from "./BaseShimmerLoader.js";
|
|
3
|
+
// lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = /*@__PURE__*/ r({
|
|
5
|
+
__name: "ShimmerMultiLine",
|
|
6
|
+
props: {
|
|
7
|
+
lines: { default: 1 },
|
|
8
|
+
randomLength: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
shimmerClasses: {},
|
|
13
|
+
inheritHeight: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
enabled: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(r) {
|
|
23
|
+
return (l, u) => (o(!0), n(e, null, s(r.lines, (e) => (o(), t(c, {
|
|
24
|
+
ref_for: !0,
|
|
25
|
+
ref: "shimmerLines",
|
|
26
|
+
class: i(["shimmer-line", [
|
|
27
|
+
r.shimmerClasses,
|
|
28
|
+
r.inheritHeight ? "uikit-h-[1em]" : "uikit-h-8",
|
|
29
|
+
"uikit-mb-2 uikit-rounded-xs"
|
|
30
|
+
]]),
|
|
31
|
+
enabled: r.enabled,
|
|
32
|
+
key: `sml-${e}`,
|
|
33
|
+
style: a({ marginRight: r.randomLength ? `${Math.round(Math.random() * 5) * 10}%` : 0 })
|
|
34
|
+
}, null, 8, [
|
|
35
|
+
"class",
|
|
36
|
+
"enabled",
|
|
37
|
+
"style"
|
|
38
|
+
]))), 128));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export { l as default };
|
|
@@ -6,14 +6,14 @@ type __VLS_Props = {
|
|
|
6
6
|
dataCy?: string;
|
|
7
7
|
logarithmic?: boolean;
|
|
8
8
|
};
|
|
9
|
-
type
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
10
|
modelValue?: Optional<number>;
|
|
11
|
-
}
|
|
12
|
-
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
14
|
"update:modelValue": (value: Optional<number>) => any;
|
|
14
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
16
|
"onUpdate:modelValue"?: ((value: Optional<number>) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
-
|
|
18
|
-
}, HTMLDivElement>;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
19
|
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, mergeModels as r, onMounted as i, openBlock as a, ref as o, useCssVars as s, useModel as c, useTemplateRef as l, watch as u, withModifiers as d } from "vue";
|
|
2
|
+
import '../../css/SimpleSlider.css';// lib/UIKit/Slider/SimpleSlider.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = [
|
|
4
|
+
"aria-valuemin",
|
|
5
|
+
"aria-valuemax",
|
|
6
|
+
"aria-valuenow"
|
|
7
|
+
], p = /*@__PURE__*/ n({
|
|
8
|
+
__name: "SimpleSlider",
|
|
9
|
+
props: /*@__PURE__*/ r({
|
|
10
|
+
min: { default: 0 },
|
|
11
|
+
max: { default: 100 },
|
|
12
|
+
step: { default: 1 },
|
|
13
|
+
dataCy: {},
|
|
14
|
+
logarithmic: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: { default: 0 },
|
|
20
|
+
modelModifiers: {}
|
|
21
|
+
}),
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(n) {
|
|
24
|
+
s((e) => ({
|
|
25
|
+
v0f43c897: g.value,
|
|
26
|
+
ec9c737a: h.value
|
|
27
|
+
}));
|
|
28
|
+
let r = l("customSlider"), p = c(n, "modelValue"), m = o(!1), h = o("50%"), g = o("50%"), _ = (e = 0) => {
|
|
29
|
+
let t = n.logarithmic ? x(e) : v(e), r = (t - n.min) / (n.max - n.min), i = n.logarithmic ? b(t) : r * 100;
|
|
30
|
+
p.value = Math.round(t), h.value = `${Math.round(i)}%`, g.value = n.logarithmic ? `${Math.round(b(t))}%` : `${r * 100}%`;
|
|
31
|
+
}, v = (e = 0) => {
|
|
32
|
+
let t = Math.round((e - n.min) / n.step) * n.step + n.min;
|
|
33
|
+
return Math.max(n.min, Math.min(n.max, t));
|
|
34
|
+
}, y = (e = 0) => {
|
|
35
|
+
let t = Math.log10(n.min), r = Math.log10(n.max);
|
|
36
|
+
return 10 ** (t + e / 100 * (r - t));
|
|
37
|
+
}, b = (e = 0) => {
|
|
38
|
+
let t = Math.log10(n.min), r = Math.log10(n.max);
|
|
39
|
+
return (Math.log10(e) - t) / (r - t) * 100;
|
|
40
|
+
}, x = (e = 0) => {
|
|
41
|
+
if (n.step === 1) return Math.max(n.min, Math.min(n.max, e));
|
|
42
|
+
let t = 10 ** (Math.round(Math.log10(e) / Math.log10(n.step)) * Math.log10(n.step));
|
|
43
|
+
return Math.max(n.min, Math.min(n.max, t));
|
|
44
|
+
}, S = (e) => {
|
|
45
|
+
if (!m.value || !r.value) return;
|
|
46
|
+
let t = r.value.getBoundingClientRect(), i = r.value.offsetWidth, a = ("touches" in e ? e.touches[0].clientX : e.clientX) - t.left;
|
|
47
|
+
a = Math.max(0, Math.min(i, a));
|
|
48
|
+
let o = n.logarithmic ? y(a / i * 100) : a / i * (n.max - n.min) + n.min;
|
|
49
|
+
_(o);
|
|
50
|
+
}, C = () => {
|
|
51
|
+
m.value = !0;
|
|
52
|
+
}, w = () => {
|
|
53
|
+
m.value = !1;
|
|
54
|
+
};
|
|
55
|
+
return u(p, (e) => {
|
|
56
|
+
_(e);
|
|
57
|
+
}, { immediate: !0 }), i(() => {
|
|
58
|
+
document.addEventListener("mousemove", S), document.addEventListener("mouseup", w), document.addEventListener("touchmove", S, { passive: !0 }), document.addEventListener("touchend", w, { passive: !0 });
|
|
59
|
+
}), (r, i) => (a(), e("div", null, [t("div", {
|
|
60
|
+
ref: "customSlider",
|
|
61
|
+
class: "uikit-relative uikit-my-20px uikit-h-1 uikit-rounded-2xs uikit-bg-w-secondary",
|
|
62
|
+
role: "slider",
|
|
63
|
+
"aria-valuemin": n.min,
|
|
64
|
+
"aria-valuemax": n.max,
|
|
65
|
+
"aria-valuenow": p.value,
|
|
66
|
+
tabindex: "0"
|
|
67
|
+
}, [i[2] ||= t("div", { class: "slider-track uikit-absolute uikit-left-0 uikit-top-0 uikit-h-full uikit-rounded-2xs uikit-bg-w-primary" }, null, -1), t("div", {
|
|
68
|
+
class: "slider-thumb uikit-absolute -uikit-top-2 uikit-size-20px -uikit-translate-x-1/2 uikit-cursor-pointer uikit-rounded-full uikit-border-2 uikit-border-solid uikit-border-w-primary uikit-bg-white",
|
|
69
|
+
onMousedown: i[0] ||= (e) => C(),
|
|
70
|
+
onTouchstart: i[1] ||= d((e) => C(), ["prevent"])
|
|
71
|
+
}, null, 32)], 8, f)]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export { p as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
thickness?: number;
|
|
3
|
+
strokeColor?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, openBlock as r } from "vue";
|
|
2
|
+
import '../css/StaticSpinner.css';// lib/UIKit/StaticSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var i = {
|
|
4
|
+
viewBox: "0 0 128 128",
|
|
5
|
+
class: "icon-spin uikit-h-6 uikit-w-6"
|
|
6
|
+
}, a = ["stroke", "stroke-width"], o = /*@__PURE__*/ n({
|
|
7
|
+
__name: "StaticSpinner",
|
|
8
|
+
props: {
|
|
9
|
+
thickness: { default: 9 },
|
|
10
|
+
strokeColor: { default: "#fff" }
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
return (o, s) => (r(), e("svg", i, [t("circle", {
|
|
14
|
+
class: "path",
|
|
15
|
+
cx: "64",
|
|
16
|
+
cy: "64",
|
|
17
|
+
r: "42",
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: n.strokeColor,
|
|
20
|
+
"stroke-width": n.thickness
|
|
21
|
+
}, null, 8, a)]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export { o as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ClassTypeProp } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
activeTabPanelIdx?: number;
|
|
4
|
+
headerTitle?: string;
|
|
5
|
+
tabPanelClasses?: ClassTypeProp;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_template: () => {
|
|
8
|
+
__VLS_Slots: {
|
|
9
|
+
header?: (props: {}) => any;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as e, renderSlot as t } from "vue";
|
|
2
|
+
// lib/UIKit/Tab/BaseTab.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var n = /*@__PURE__*/ e({
|
|
4
|
+
__name: "BaseTab",
|
|
5
|
+
props: {
|
|
6
|
+
activeTabPanelIdx: {},
|
|
7
|
+
headerTitle: {},
|
|
8
|
+
tabPanelClasses: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (e, n) => t(e.$slots, "header");
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export { n as default };
|