@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,131 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeModels as s, normalizeClass as c, openBlock as l, ref as u, renderList as d, renderSlot as f, unref as p, useModel as m, watch as h } from "vue";
|
|
2
|
+
import { isArrNullOrEmpty as g, stringToHyphened as _ } from "@wikicasa-dev/utilities";
|
|
3
|
+
import v from "./CheckboxBtn.js";
|
|
4
|
+
// lib/UIKit/Checkbox/CheckboxGroup.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var y = ["id", "data-cy"], b = /*@__PURE__*/ o({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "CheckboxGroup",
|
|
8
|
+
props: /*@__PURE__*/ s({
|
|
9
|
+
checkboxData: { default() {
|
|
10
|
+
return [];
|
|
11
|
+
} },
|
|
12
|
+
formCheckInline: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
reset: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
checkboxContainerClasses: { default: "" },
|
|
21
|
+
autoCheckResetAll: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
autoCheckResetEmpty: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
manualToggleResetButton: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
getKey: {
|
|
34
|
+
type: Function,
|
|
35
|
+
default: (e) => typeof e == "string" || typeof e == "number" ? `${e}` : `${e.id}`
|
|
36
|
+
},
|
|
37
|
+
groupId: { default: "" },
|
|
38
|
+
dataCy: { default: "" }
|
|
39
|
+
}, {
|
|
40
|
+
refresh: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
refreshModifiers: {}
|
|
45
|
+
}),
|
|
46
|
+
emits: /*@__PURE__*/ s([
|
|
47
|
+
"resetted",
|
|
48
|
+
"update:modelValue",
|
|
49
|
+
"checkedGroup"
|
|
50
|
+
], ["update:refresh"]),
|
|
51
|
+
setup(o, { emit: s }) {
|
|
52
|
+
let b = o, x = s, S = m(o, "refresh"), C = u(/* @__PURE__ */ new Map()), w = t(() => {
|
|
53
|
+
for (let e of b.checkboxData) if (e.reset) return e;
|
|
54
|
+
return null;
|
|
55
|
+
}), T = t(() => b.checkboxData.length), E = t(() => {
|
|
56
|
+
let e = 0;
|
|
57
|
+
return C.value.forEach((t) => {
|
|
58
|
+
t.checked && e++;
|
|
59
|
+
}), e;
|
|
60
|
+
}), D = () => {
|
|
61
|
+
let e = [], t = /* @__PURE__ */ new Map();
|
|
62
|
+
for (let n of b.checkboxData) t.set(`${n.id}`, {
|
|
63
|
+
...n,
|
|
64
|
+
checked: !!n.checked
|
|
65
|
+
}), n.checked && e.push(n);
|
|
66
|
+
C.value = t, x("update:modelValue", e);
|
|
67
|
+
};
|
|
68
|
+
D();
|
|
69
|
+
let O = (e, t) => {
|
|
70
|
+
let n = C.value.get(e);
|
|
71
|
+
n && (t ? C.value.set(e, {
|
|
72
|
+
...n,
|
|
73
|
+
...t
|
|
74
|
+
}) : C.value.set(e, {
|
|
75
|
+
...n,
|
|
76
|
+
checked: !n.checked
|
|
77
|
+
}));
|
|
78
|
+
}, k = () => {
|
|
79
|
+
C.value.forEach((e) => {
|
|
80
|
+
e.checked = !1;
|
|
81
|
+
});
|
|
82
|
+
}, A = () => {
|
|
83
|
+
k(), x("update:modelValue", []), x("resetted");
|
|
84
|
+
}, j = (e) => C.value.get(b.getKey(e))?.checked ?? !1, M = (e) => {
|
|
85
|
+
if (g(b.checkboxData)) return;
|
|
86
|
+
let t = C.value.get(e.id);
|
|
87
|
+
t?.reset && e.checked ? k() : w.value && !t?.reset && O(b.getKey(w.value), { checked: !1 }), O(`${e.id}`), b.autoCheckResetAll && w.value && E.value === T.value - 1 && C.value.forEach((e) => {
|
|
88
|
+
e.checked = !!e.reset;
|
|
89
|
+
}), !b.autoCheckResetEmpty || !w.value || E.value || b.manualToggleResetButton && t?.reset || O(b.getKey(w.value), { checked: !0 });
|
|
90
|
+
let n = [];
|
|
91
|
+
C.value.forEach((e) => {
|
|
92
|
+
e.checked && n.push(e);
|
|
93
|
+
}), x("update:modelValue", n), x("checkedGroup", b.groupId);
|
|
94
|
+
};
|
|
95
|
+
return h(() => b.reset, (e) => {
|
|
96
|
+
e && A();
|
|
97
|
+
}), h(S, (e) => {
|
|
98
|
+
e && (D(), S.value = !1);
|
|
99
|
+
}), (t, s) => f(t.$slots, "default", {
|
|
100
|
+
isActive: j,
|
|
101
|
+
handleChange: M,
|
|
102
|
+
checkboxesData: o.checkboxData
|
|
103
|
+
}, () => [a("div", {
|
|
104
|
+
id: o.groupId,
|
|
105
|
+
class: c(["checkbox-group-container", t.$attrs.class || ""]),
|
|
106
|
+
"data-cy": o.dataCy
|
|
107
|
+
}, [f(t.$slots, "checkbox_elements", {
|
|
108
|
+
isActive: j,
|
|
109
|
+
handleChange: M,
|
|
110
|
+
checkboxesData: o.checkboxData,
|
|
111
|
+
reset: A
|
|
112
|
+
}, () => [o.checkboxData ? (l(!0), i(e, { key: 0 }, d(o.checkboxData, (e, t) => (l(), n(v, {
|
|
113
|
+
id: o.getKey(e),
|
|
114
|
+
key: t,
|
|
115
|
+
"data-cy": e.dataCy ?? `checkbox_${p(_)(`${e.label}`)}`,
|
|
116
|
+
label: e.label,
|
|
117
|
+
inline: o.formCheckInline,
|
|
118
|
+
"model-value": j(e),
|
|
119
|
+
class: c([o.formCheckInline ? "uikit-mr-10px" : "uikit-mb-10px", o.checkboxContainerClasses]),
|
|
120
|
+
onChange: s[0] ||= (e) => M(e)
|
|
121
|
+
}, null, 8, [
|
|
122
|
+
"id",
|
|
123
|
+
"data-cy",
|
|
124
|
+
"label",
|
|
125
|
+
"inline",
|
|
126
|
+
"model-value",
|
|
127
|
+
"class"
|
|
128
|
+
]))), 128)) : r("", !0)])], 10, y)]);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
export { b as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type CheckboxValue = string | number | boolean | null | undefined;
|
|
2
|
+
export interface CheckboxButtonGroupProps<T extends CheckboxValue = CheckboxValue> {
|
|
3
|
+
dataCy?: string;
|
|
4
|
+
items?: CheckboxButtonItem<T>[];
|
|
5
|
+
/**
|
|
6
|
+
* Value of the reset button
|
|
7
|
+
*/
|
|
8
|
+
resetValue?: T;
|
|
9
|
+
}
|
|
10
|
+
export interface CheckboxButtonItem<T extends CheckboxValue = CheckboxValue> {
|
|
11
|
+
dataCy?: string;
|
|
12
|
+
value: T;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
declare const __VLS_export: <T extends CheckboxValue = CheckboxValue>(__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<{
|
|
19
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(CheckboxButtonGroupProps<T> & {
|
|
20
|
+
modelValue?: NonNullable<T>[];
|
|
21
|
+
reset?: boolean;
|
|
22
|
+
}) & {
|
|
23
|
+
"onUpdate:modelValue"?: ((value: NonNullable<T>[]) => any) | undefined;
|
|
24
|
+
"onUpdate:reset"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}> & (typeof globalThis extends {
|
|
26
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
27
|
+
} ? P : {});
|
|
28
|
+
expose: (exposed: {}) => void;
|
|
29
|
+
attrs: any;
|
|
30
|
+
slots: {
|
|
31
|
+
default?: (props: {
|
|
32
|
+
isChecked: (value: T) => boolean;
|
|
33
|
+
handleCheck: (value: T, checked: boolean) => void;
|
|
34
|
+
handleResetCheck: (checked: boolean) => void;
|
|
35
|
+
}) => any;
|
|
36
|
+
};
|
|
37
|
+
emit: ((event: "update:modelValue", value: NonNullable<T>[]) => void) & ((event: "update:reset", value: boolean) => void);
|
|
38
|
+
}>) => import('vue').VNode & {
|
|
39
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} : {
|
|
44
|
+
[K in keyof T as K]: T[K];
|
|
45
|
+
}) & {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createElementBlock as n, createTextVNode as r, defineComponent as i, mergeModels as a, openBlock as o, provide as s, renderList as c, renderSlot as l, toDisplayString as u, useModel as d, watch as f, withCtx as p } from "vue";
|
|
2
|
+
import m from "../CheckboxBtn.js";
|
|
3
|
+
// lib/UIKit/Checkbox/v2/CheckboxButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = ["data-cy"], g = /*@__PURE__*/ i({
|
|
5
|
+
__name: "CheckboxButtonGroup",
|
|
6
|
+
props: /*@__PURE__*/ a({
|
|
7
|
+
dataCy: {},
|
|
8
|
+
items: { default: () => [] },
|
|
9
|
+
resetValue: {}
|
|
10
|
+
}, {
|
|
11
|
+
modelValue: { default: () => [] },
|
|
12
|
+
modelModifiers: {},
|
|
13
|
+
reset: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
resetModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:modelValue", "update:reset"],
|
|
20
|
+
setup(i) {
|
|
21
|
+
let a = d(i, "modelValue"), g = d(i, "reset"), _ = /* @__PURE__ */ new Map(), v = (e) => e ? a.value.includes(e) : !1, y = (e, t) => {
|
|
22
|
+
if (!e) return;
|
|
23
|
+
let n = [];
|
|
24
|
+
n = t ? [...a.value, e] : a.value.filter((t) => t !== e), i.resetValue && (n = n.filter((e) => e !== i.resetValue), Array.from(_.keys()).filter((e) => !n.includes(e)).length === _.size && (n = [i.resetValue], _.get(i.resetValue)?.focus?.()), n.length === _.size - 1 && (n = [i.resetValue], _.get(i.resetValue)?.focus?.())), a.value = n;
|
|
25
|
+
}, b = (e) => {
|
|
26
|
+
i.resetValue && (e ? a.value = [i.resetValue] : a.value = a.value.filter((e) => e !== i.resetValue));
|
|
27
|
+
};
|
|
28
|
+
return s("addItem", (e, t) => {
|
|
29
|
+
e && t && _.set(e, t);
|
|
30
|
+
}), s("removeItem", (e) => {
|
|
31
|
+
e && _.delete(e);
|
|
32
|
+
}), f(g, (e) => {
|
|
33
|
+
e && (a.value = [], g.value = !1);
|
|
34
|
+
}), (a, s) => (o(), n("div", { "data-cy": i.dataCy }, [l(a.$slots, "default", {
|
|
35
|
+
isChecked: v,
|
|
36
|
+
handleCheck: y,
|
|
37
|
+
handleResetCheck: b
|
|
38
|
+
}, () => [(o(!0), n(e, null, c(i.items, (e) => (o(), t(m, {
|
|
39
|
+
key: `checkbox-item-${e.value}`,
|
|
40
|
+
required: e.required,
|
|
41
|
+
"data-cy": e.dataCy,
|
|
42
|
+
"model-value": v(e.value),
|
|
43
|
+
"onUpdate:modelValue": (t) => y(e.value, t)
|
|
44
|
+
}, {
|
|
45
|
+
label: p(() => [r(u(e.label), 1)]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, 1032, [
|
|
48
|
+
"required",
|
|
49
|
+
"data-cy",
|
|
50
|
+
"model-value",
|
|
51
|
+
"onUpdate:modelValue"
|
|
52
|
+
]))), 128))])], 8, h));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export { g as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CheckboxRootProps } from 'reka-ui';
|
|
2
|
+
export type CheckboxGroupItemPrimitiveValueType<T extends undefined | CheckboxRootProps["value"] = undefined> = T;
|
|
3
|
+
export interface CheckboxGroupItemPrimitiveProps<T = boolean, TValue extends CheckboxRootProps["value"] | undefined = undefined> extends Omit<CheckboxRootProps<T>, "value"> {
|
|
4
|
+
dataCy?: string;
|
|
5
|
+
value: CheckboxGroupItemPrimitiveValueType<TValue>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: <T, TValue extends CheckboxRootProps["value"] | undefined>(__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<{
|
|
10
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<CheckboxGroupItemPrimitiveProps<T, TValue> & {
|
|
11
|
+
"onUpdate:modelValue"?: ((value: "indeterminate" | T) => any) | undefined;
|
|
12
|
+
}> & (typeof globalThis extends {
|
|
13
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
14
|
+
} ? P : {});
|
|
15
|
+
expose: (exposed: {}) => void;
|
|
16
|
+
attrs: any;
|
|
17
|
+
slots: {
|
|
18
|
+
default?: (props: {
|
|
19
|
+
modelValue: "indeterminate" | T;
|
|
20
|
+
state: boolean | "indeterminate";
|
|
21
|
+
}) => any;
|
|
22
|
+
};
|
|
23
|
+
emit: (evt: "update:modelValue", value: "indeterminate" | T) => void;
|
|
24
|
+
}>) => import('vue').VNode & {
|
|
25
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { CheckboxRoot as u } from "reka-ui";
|
|
3
|
+
// lib/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = /*@__PURE__*/ n({
|
|
5
|
+
__name: "CheckboxGroupItemPrimitive",
|
|
6
|
+
props: {
|
|
7
|
+
dataCy: {},
|
|
8
|
+
value: {},
|
|
9
|
+
defaultValue: {},
|
|
10
|
+
modelValue: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
parent: { type: Boolean },
|
|
13
|
+
id: {},
|
|
14
|
+
trueValue: {},
|
|
15
|
+
falseValue: {},
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: { type: [
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Function
|
|
21
|
+
] },
|
|
22
|
+
name: {},
|
|
23
|
+
required: { type: Boolean }
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(n, { emit: d }) {
|
|
27
|
+
let f = t(n, ["dataCy"]), p = d;
|
|
28
|
+
return (t, d) => (o(), e(c(u), i(f, {
|
|
29
|
+
"data-cy": n.dataCy,
|
|
30
|
+
"onUpdate:modelValue": d[0] ||= (e) => p("update:modelValue", e)
|
|
31
|
+
}), {
|
|
32
|
+
default: l((e) => [s(t.$slots, "default", a(r(e)))]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["data-cy"]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export { d as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CheckboxGroupRootProps, AcceptableValue } from 'reka-ui';
|
|
2
|
+
export interface CheckboxGroupPrimitiveProps<T extends AcceptableValue> extends CheckboxGroupRootProps<T> {
|
|
3
|
+
dataCy?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
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<{
|
|
8
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<CheckboxGroupPrimitiveProps<T> & {
|
|
9
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: {}) => any;
|
|
17
|
+
};
|
|
18
|
+
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
19
|
+
}>) => import('vue').VNode & {
|
|
20
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} : {
|
|
25
|
+
[K in keyof T as K]: T[K];
|
|
26
|
+
}) & {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createBlock as e, createPropsRestProxy as t, defineComponent as n, mergeProps as r, openBlock as i, renderSlot as a, unref as o, withCtx as s } from "vue";
|
|
2
|
+
import { CheckboxGroupRoot as c } from "reka-ui";
|
|
3
|
+
// lib/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = /*@__PURE__*/ n({
|
|
5
|
+
__name: "CheckboxGroupPrimitive",
|
|
6
|
+
props: {
|
|
7
|
+
dataCy: {},
|
|
8
|
+
defaultValue: {},
|
|
9
|
+
modelValue: {},
|
|
10
|
+
rovingFocus: { type: Boolean },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
max: {},
|
|
13
|
+
allValues: {},
|
|
14
|
+
as: { type: [
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Function
|
|
18
|
+
] },
|
|
19
|
+
asChild: { type: Boolean },
|
|
20
|
+
dir: {},
|
|
21
|
+
orientation: {},
|
|
22
|
+
loop: { type: Boolean },
|
|
23
|
+
name: {},
|
|
24
|
+
required: { type: Boolean }
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(n, { emit: l }) {
|
|
28
|
+
let u = t(n, ["dataCy"]), d = l;
|
|
29
|
+
return (t, l) => (i(), e(o(c), r(u, {
|
|
30
|
+
"data-cy": n.dataCy,
|
|
31
|
+
"onUpdate:modelValue": l[0] ||= (e) => d("update:modelValue", e)
|
|
32
|
+
}), {
|
|
33
|
+
default: s(() => [a(t.$slots, "default")]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["data-cy"]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export { l as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ProgressIndicatorProps } from 'reka-ui';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<ProgressIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createBlock as e, defineComponent as t, guardReactiveProps as n, normalizeProps as r, openBlock as i, unref as a } from "vue";
|
|
2
|
+
import { ProgressIndicator as o } from "reka-ui";
|
|
3
|
+
// lib/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var s = /*@__PURE__*/ t({
|
|
5
|
+
__name: "ProgressIndicatorPrimitive",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: { type: [
|
|
9
|
+
String,
|
|
10
|
+
Object,
|
|
11
|
+
Function
|
|
12
|
+
] }
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
let s = t;
|
|
16
|
+
return (t, c) => (i(), e(a(o), r(n(s)), null, 16));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { s as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ProgressRootProps } from 'reka-ui';
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
default?: (props: {
|
|
5
|
+
modelValue: number | null | undefined;
|
|
6
|
+
}) => any;
|
|
7
|
+
};
|
|
8
|
+
__VLS_TemplateRefs: {
|
|
9
|
+
root: ({
|
|
10
|
+
$: import('vue').ComponentInternalInstance;
|
|
11
|
+
$data: {};
|
|
12
|
+
$props: {
|
|
13
|
+
readonly modelValue?: number | null | undefined;
|
|
14
|
+
readonly max?: number | undefined;
|
|
15
|
+
readonly getValueLabel?: ((value: number | null | undefined, max: number) => string | undefined) | undefined;
|
|
16
|
+
readonly getValueText?: ((value: number | null | undefined, max: number) => string | undefined) | undefined;
|
|
17
|
+
readonly asChild?: boolean | undefined;
|
|
18
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
19
|
+
readonly "onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined | undefined;
|
|
20
|
+
readonly "onUpdate:max"?: ((value: number) => any) | undefined | undefined;
|
|
21
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
22
|
+
$attrs: import('vue').Attrs;
|
|
23
|
+
$refs: {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
$slots: Readonly<{
|
|
27
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
30
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
31
|
+
$host: Element | null;
|
|
32
|
+
$emit: ((event: "update:modelValue", value: number | null | undefined) => void) & ((event: "update:max", value: number) => void);
|
|
33
|
+
$el: any;
|
|
34
|
+
$options: import('vue').ComponentOptionsBase<Readonly<ProgressRootProps> & Readonly<{
|
|
35
|
+
"onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
|
|
36
|
+
"onUpdate:max"?: ((value: number) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
"update:modelValue": (value: number | null | undefined) => any;
|
|
39
|
+
"update:max": (value: number) => any;
|
|
40
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
41
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
42
|
+
created?: (() => void) | (() => void)[];
|
|
43
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
44
|
+
mounted?: (() => void) | (() => void)[];
|
|
45
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
46
|
+
updated?: (() => void) | (() => void)[];
|
|
47
|
+
activated?: (() => void) | (() => void)[];
|
|
48
|
+
deactivated?: (() => void) | (() => void)[];
|
|
49
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
50
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
51
|
+
destroyed?: (() => void) | (() => void)[];
|
|
52
|
+
unmounted?: (() => void) | (() => void)[];
|
|
53
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
54
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
55
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
56
|
+
};
|
|
57
|
+
$forceUpdate: () => void;
|
|
58
|
+
$nextTick: typeof import('vue').nextTick;
|
|
59
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
60
|
+
} & Readonly<{}> & Omit<Readonly<ProgressRootProps> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
|
|
62
|
+
"onUpdate:max"?: ((value: number) => any) | undefined;
|
|
63
|
+
}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
64
|
+
$slots: {
|
|
65
|
+
default?: (props: {
|
|
66
|
+
modelValue: number | null | undefined;
|
|
67
|
+
}) => any;
|
|
68
|
+
};
|
|
69
|
+
}) | null;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
73
|
+
declare const __VLS_base: import('vue').DefineComponent<ProgressRootProps, {
|
|
74
|
+
getValueLabel: (value: number | null | undefined, max: number) => string | undefined;
|
|
75
|
+
getValueText: (value: number | null | undefined, max: number) => string | undefined;
|
|
76
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
|
+
"update:modelValue": (value: number | null | undefined) => any;
|
|
78
|
+
"update:max": (value: number) => any;
|
|
79
|
+
}, string, import('vue').PublicProps, Readonly<ProgressRootProps> & Readonly<{
|
|
80
|
+
"onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
|
|
81
|
+
"onUpdate:max"?: ((value: number) => any) | undefined;
|
|
82
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
83
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
84
|
+
declare const _default: typeof __VLS_export;
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createBlock as e, defineComponent as t, guardReactiveProps as n, mergeProps as r, normalizeProps as i, openBlock as a, renderSlot as o, unref as s, useTemplateRef as c, withCtx as l } from "vue";
|
|
2
|
+
import { ProgressRoot as u } from "reka-ui";
|
|
3
|
+
// lib/UIKit/ProgressBar/ProgressRootPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = /*@__PURE__*/ t({
|
|
5
|
+
__name: "ProgressRootPrimitive",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
max: {},
|
|
9
|
+
getValueLabel: { type: Function },
|
|
10
|
+
getValueText: { type: Function },
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: { type: [
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Function
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue", "update:max"],
|
|
19
|
+
setup(t, { expose: d, emit: f }) {
|
|
20
|
+
let p = t, m = f, h = c("root");
|
|
21
|
+
return d({
|
|
22
|
+
getValueLabel: (e, t) => h.value?.getValueLabel?.(e, t),
|
|
23
|
+
getValueText: (e, t) => h.value?.getValueText?.(e, t)
|
|
24
|
+
}), (t, c) => (a(), e(s(u), r({ ref: "root" }, p, {
|
|
25
|
+
"onUpdate:modelValue": c[0] ||= (e) => m("update:modelValue", e),
|
|
26
|
+
"onUpdate:max": c[1] ||= (e) => m("update:max", e)
|
|
27
|
+
}), {
|
|
28
|
+
default: l((e) => [o(t.$slots, "default", i(n(e)))]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export { d as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClassTypeProp } from '../types';
|
|
2
|
+
declare const __VLS_export: <TID extends string | number | null>(__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<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
id?: TID;
|
|
5
|
+
dataCy?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
inputClasses?: ClassTypeProp;
|
|
10
|
+
labelClasses?: ClassTypeProp;
|
|
11
|
+
} & {
|
|
12
|
+
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
13
|
+
onChange?: ((args_0: {
|
|
14
|
+
id: NonNullable<TID>;
|
|
15
|
+
label: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
}) => any) | undefined;
|
|
18
|
+
}> & (typeof globalThis extends {
|
|
19
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
20
|
+
} ? P : {});
|
|
21
|
+
expose: (exposed: {}) => void;
|
|
22
|
+
attrs: any;
|
|
23
|
+
slots: {};
|
|
24
|
+
emit: ((evt: "update:modelValue", args_0: boolean) => void) & ((evt: "change", args_0: {
|
|
25
|
+
id: NonNullable<TID>;
|
|
26
|
+
label: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
}) => void);
|
|
29
|
+
}>) => import('vue').VNode & {
|
|
30
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
31
|
+
};
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
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,51 @@
|
|
|
1
|
+
import { computed as e, createElementBlock as t, createElementVNode as n, createTextVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, toDisplayString as s, useId as c, withModifiers as l } from "vue";
|
|
2
|
+
// lib/UIKit/Radio/RadioButton.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = ["data-cy"], d = [
|
|
4
|
+
"id",
|
|
5
|
+
"name",
|
|
6
|
+
"checked"
|
|
7
|
+
], f = ["for"], p = /*@__PURE__*/ i({
|
|
8
|
+
__name: "RadioButton",
|
|
9
|
+
props: {
|
|
10
|
+
id: {},
|
|
11
|
+
dataCy: {},
|
|
12
|
+
name: {},
|
|
13
|
+
label: {},
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
inputClasses: {},
|
|
19
|
+
labelClasses: {}
|
|
20
|
+
},
|
|
21
|
+
emits: ["change", "update:modelValue"],
|
|
22
|
+
setup(i, { emit: p }) {
|
|
23
|
+
let m = p, h = c(), g = e(() => `${i.id ?? h}`), _ = () => {
|
|
24
|
+
if (i.modelValue) return;
|
|
25
|
+
let e = {
|
|
26
|
+
id: i.id ?? h,
|
|
27
|
+
label: i.label,
|
|
28
|
+
name: i.name
|
|
29
|
+
};
|
|
30
|
+
m("change", e), m("update:modelValue", !i.modelValue);
|
|
31
|
+
};
|
|
32
|
+
return (e, c) => (o(), t("div", {
|
|
33
|
+
class: "uikit-inline-block",
|
|
34
|
+
"data-cy": i.dataCy,
|
|
35
|
+
onClick: l(_, ["stop"])
|
|
36
|
+
}, [n("input", {
|
|
37
|
+
id: g.value,
|
|
38
|
+
ref: "checkbox",
|
|
39
|
+
type: "radio",
|
|
40
|
+
class: "uikit-pointer-events-none uikit-hidden",
|
|
41
|
+
name: i.name,
|
|
42
|
+
checked: i.modelValue,
|
|
43
|
+
onChange: c[0] ||= l(() => {}, ["prevent"]),
|
|
44
|
+
onClick: c[1] ||= l(() => {}, ["prevent"])
|
|
45
|
+
}, null, 40, d), n("label", {
|
|
46
|
+
class: a([i.labelClasses, "uikit-flex uikit-cursor-pointer uikit-items-center uikit-text-sm"]),
|
|
47
|
+
for: g.value
|
|
48
|
+
}, [n("span", { class: a(["uikit-flex-no-shrink uikit-mr-2 uikit-inline-block uikit-h-4 uikit-w-4 uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-transition-colors uikit-duration-200", [{ "checked uikit-border-w-primary uikit-bg-w-primary uikit-shadow-[0_0_0_2px_white_inset]": i.modelValue }, i.inputClasses]]) }, null, 2), r(" " + s(i.label), 1)], 10, f)], 8, u));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export { p as default };
|