@wikicasa-dev/components 2.10.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.js +1 -2
- package/dist/UIKit/AccessibleSelect.vue.js +75 -76
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +5 -3
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +6 -3
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +6 -3
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +9 -2
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +12 -9
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +1 -2
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +6 -3
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +6 -0
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -2
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +18 -6
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -2
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +34 -28
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +1 -2
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +84 -97
- package/dist/UIKit/BaseAlert.d.ts +5 -3
- package/dist/UIKit/BaseAlert.js +1 -2
- package/dist/UIKit/BaseAlert.vue.js +1 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -2
- package/dist/UIKit/BaseAutocomplete.vue.js +65 -72
- package/dist/UIKit/BaseBadge.d.ts +5 -3
- package/dist/UIKit/BaseBadge.js +1 -2
- package/dist/UIKit/BaseBadge.vue.js +1 -2
- package/dist/UIKit/BaseBreadcrumb.d.ts +9 -7
- package/dist/UIKit/BaseBreadcrumb.js +1 -2
- package/dist/UIKit/BaseBreadcrumb.vue.js +1 -2
- package/dist/UIKit/BaseButton.js +1 -2
- package/dist/UIKit/BaseButton.vue.js +26 -27
- package/dist/UIKit/BaseComplexToggle.js +4 -5
- package/dist/UIKit/BaseComplexToggle.vue.js +2 -13
- package/dist/UIKit/BaseDropDown.d.ts +27 -20
- package/dist/UIKit/BaseDropDown.js +1 -2
- package/dist/UIKit/BaseDropDown.vue.js +48 -49
- package/dist/UIKit/BaseFloatingLabel.js +4 -5
- package/dist/UIKit/BaseFloatingLabel.vue.js +1 -2
- package/dist/UIKit/BaseInput.js +4 -5
- package/dist/UIKit/BaseInput.vue.js +65 -66
- package/dist/UIKit/BaseModal.d.ts +22 -15
- package/dist/UIKit/BaseModal.js +1 -2
- package/dist/UIKit/BaseModal.vue.js +50 -56
- package/dist/UIKit/BasePagination.js +1 -2
- package/dist/UIKit/BasePagination.vue.js +9 -3
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +10 -5
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -2
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +1 -2
- package/dist/UIKit/BaseSlider.js +4 -5
- package/dist/UIKit/BaseSlider.vue.js +29 -32
- package/dist/UIKit/BaseSnackbar.js +1 -2
- package/dist/UIKit/BaseSnackbar.vue.js +19 -24
- package/dist/UIKit/BaseTextarea.js +4 -5
- package/dist/UIKit/BaseTextarea.vue.js +51 -52
- package/dist/UIKit/BaseToggle.d.ts +7 -5
- package/dist/UIKit/BaseToggle.js +1 -2
- package/dist/UIKit/BaseToggle.vue.js +1 -2
- package/dist/UIKit/BaseTooltip.d.ts +8 -6
- package/dist/UIKit/BaseTooltip.js +4 -5
- package/dist/UIKit/BaseTooltip.vue.js +1 -2
- package/dist/UIKit/BaseUploadFile.d.ts +7 -5
- package/dist/UIKit/BaseUploadFile.js +1 -2
- package/dist/UIKit/BaseUploadFile.vue.js +26 -27
- package/dist/UIKit/Card/BaseCard.js +1 -2
- package/dist/UIKit/Card/BaseCard.vue.js +2 -2
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +5 -3
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +6 -7
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +5 -3
- package/dist/UIKit/Card/CardImagePrimitive.js +1 -2
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +7 -8
- package/dist/UIKit/Card/CardRootPrimitive.js +1 -2
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +11 -11
- package/dist/UIKit/Card/type.js +1 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.js +1 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +6 -7
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +39 -46
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +1 -2
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +21 -32
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +1 -1
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +1 -2
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +7 -3
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +1 -2
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +8 -3
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +1 -2
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +6 -3
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +72 -7
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +1 -2
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +6 -3
- package/dist/UIKit/Radio/RadioButton.js +1 -2
- package/dist/UIKit/Radio/RadioButton.vue.js +1 -2
- package/dist/UIKit/Radio/RadioGroup.js +1 -2
- package/dist/UIKit/Radio/RadioGroup.vue.js +23 -24
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +1 -2
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +17 -14
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +1 -2
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +6 -3
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +9 -3
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +1 -2
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +6 -3
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +4 -5
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +1 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +12 -13
- package/dist/UIKit/Slider/SimpleSlider.js +4 -5
- package/dist/UIKit/Slider/SimpleSlider.vue.js +1 -2
- package/dist/UIKit/StaticSpinner.js +1 -2
- package/dist/UIKit/StaticSpinner.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTab.d.ts +5 -3
- package/dist/UIKit/Tab/BaseTab.js +1 -2
- package/dist/UIKit/Tab/BaseTab.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTabList.js +1 -2
- package/dist/UIKit/Tab/BaseTabList.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +5 -3
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -2
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +1 -2
- package/dist/UIKit/Tab/BaseTabView.js +1 -2
- package/dist/UIKit/Tab/BaseTabView.vue.js +36 -37
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +6 -0
- package/dist/UIKit/Tab/v2/BaseTabs.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +13 -6
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +6 -3
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +6 -3
- package/dist/UIKit/Tab/v2/BaseTabsList.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +6 -3
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +1 -2
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +6 -3
- package/dist/UIKit/frameUtils.js +1 -2
- package/dist/UIKit/useScrollLock.js +2 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/chart/DoughnutChart.js +1 -2
- package/dist/chart/DoughnutChart.vue.js +14 -15
- package/dist/chart/LineChart.js +1 -2
- package/dist/chart/LineChart.vue.js +16 -17
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +7 -5
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -2
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +1 -2
- package/dist/components/IntersectionObserver/IntersectionObserver.d.ts +31 -29
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -2
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +2 -7
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +1 -2
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +16 -17
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +14 -9
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +1 -2
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +12 -13
- package/dist/components/IntersectionObserver/v2/types.js +1 -2
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +4 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +13 -14
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +12 -13
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +5 -3
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +1 -2
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -6
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +39 -40
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +13 -14
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.js +1 -2
- package/dist/components/carousel/Primitive/SwiperThumbnailPrimitive.vue.js +27 -28
- package/dist/components/carousel/Primitive/deferredImages.js +1 -2
- package/dist/components/carousel/SwiperCarousel.d.ts +14 -7
- package/dist/components/carousel/SwiperCarousel.js +4 -5
- package/dist/components/carousel/SwiperCarousel.vue.js +82 -83
- package/dist/components/carousel/SwiperSlide.d.ts +5 -3
- package/dist/components/carousel/SwiperSlide.js +6 -7
- package/dist/composables/mock.js +1 -2
- package/dist/composables/useFloatingLabel.js +2 -7
- package/dist/composables/useValidator.js +1 -2
- package/dist/css/BaseAccordionItem.css +1 -0
- package/dist/{assets/BaseInput2.css → css/BaseInput.css} +1 -1
- package/dist/css/BaseModal.css +1 -0
- package/dist/css/BaseSlider.css +1 -0
- package/dist/css/BaseSnackbar.css +1 -0
- package/dist/{assets → css}/ClearableAutocomplete.css +1 -1
- package/dist/css/SwiperCarousel.css +1 -0
- package/dist/css/SwiperNavigationPrimitive.css +1 -0
- package/dist/css/SwiperRootPrimitive.css +1 -0
- package/dist/docs/AccessibleSelect.md +3 -1
- package/dist/docs/AccordionContentPrimitive.md +1 -1
- package/dist/docs/AccordionHeaderPrimitive.md +1 -1
- package/dist/docs/AccordionItemPrimitive.md +3 -3
- package/dist/docs/AccordionTriggerPrimitive.md +1 -1
- package/dist/docs/BaseAccordion.md +3 -3
- package/dist/docs/BaseAccordionItem.md +3 -1
- package/dist/docs/BaseAlert.md +3 -1
- package/dist/docs/BaseAutocomplete.md +3 -1
- package/dist/docs/BaseBadge.md +3 -1
- package/dist/docs/BaseBreadcrumb.md +1 -1
- package/dist/docs/BaseButton.md +1 -1
- package/dist/docs/BaseCard.md +3 -1
- package/dist/docs/BaseComplexToggle.md +3 -1
- package/dist/docs/BaseDropDown.md +3 -1
- package/dist/docs/BaseFloatingLabel.md +3 -1
- package/dist/docs/BaseInput.md +3 -1
- package/dist/docs/BaseModal.md +3 -1
- package/dist/docs/BasePagination.md +1 -1
- package/dist/docs/BaseShimmerLoader.md +3 -1
- package/dist/docs/BaseSlider.md +3 -1
- package/dist/docs/BaseSnackbar.md +4 -2
- package/dist/docs/BaseTab.md +1 -1
- package/dist/docs/BaseTabView.md +1 -1
- package/dist/docs/BaseTabs.md +4 -2
- package/dist/docs/BaseTabsContent.md +1 -1
- package/dist/docs/BaseTabsIndicator.md +3 -1
- package/dist/docs/BaseTabsList.md +1 -1
- package/dist/docs/BaseTabsTrigger.md +1 -1
- package/dist/docs/BaseTextarea.md +3 -1
- package/dist/docs/BaseToggle.md +1 -1
- package/dist/docs/BaseTooltip.md +3 -1
- package/dist/docs/BaseUploadFile.md +1 -1
- package/dist/docs/CardDescriptionPrimitive.md +1 -1
- package/dist/docs/CardImagePrimitive.md +1 -1
- package/dist/docs/CardRootPrimitive.md +3 -1
- package/dist/docs/CheckboxBtn.md +3 -1
- package/dist/docs/CheckboxButtonGroup.md +1 -1
- package/dist/docs/CheckboxGroup.md +1 -1
- package/dist/docs/CheckboxGroupItemPrimitive.md +6 -5
- package/dist/docs/CheckboxGroupPrimitive.md +3 -1
- package/dist/docs/ClearableAutocomplete.md +3 -1
- package/dist/docs/DoughnutChart.md +1 -1
- package/dist/docs/INDEX.md +2 -2
- package/dist/docs/IntersectionObservable.md +1 -1
- package/dist/docs/IntersectionObserver.md +1 -1
- package/dist/docs/IntersectionObserverProvider.md +1 -1
- package/dist/docs/IntersectionObserverTarget.md +1 -1
- package/dist/docs/LineChart.md +1 -1
- package/dist/docs/ProgressIndicatorPrimitive.md +1 -1
- package/dist/docs/ProgressRootPrimitive.md +2 -2
- package/dist/docs/RadioButton.md +1 -1
- package/dist/docs/RadioButtonGroup.md +1 -1
- package/dist/docs/RadioButtonItem.md +3 -1
- package/dist/docs/RadioGroup.md +1 -1
- package/dist/docs/RadioGroupItemPrimitive.md +1 -1
- package/dist/docs/SelectItem.md +1 -1
- package/dist/docs/ShimmerMultiLine.md +1 -1
- package/dist/docs/SimpleSlider.md +3 -1
- package/dist/docs/StaticSpinner.md +3 -1
- package/dist/docs/SwiperCarousel.md +3 -1
- package/dist/docs/SwiperNavigationPrimitive.md +3 -1
- package/dist/docs/SwiperPaginationPrimitive.md +3 -1
- package/dist/docs/SwiperPrimitive.md +1 -1
- package/dist/docs/SwiperRootPrimitive.md +3 -1
- package/dist/docs/SwiperSlide.md +1 -1
- package/dist/docs/SwiperSlideImagePrimitive.md +3 -1
- package/dist/docs/SwiperThumbnailPrimitive.md +1 -1
- package/dist/docs/TOKENS.md +1 -1
- package/dist/docs/agent-index.md +1 -1
- package/dist/index.js +25 -25
- package/dist/lazyModules/ChartJs/Chart.js +1 -2
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +1 -2
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +1 -2
- package/dist/lazyModules/ChartJs/LineChart/core.js +1 -2
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +1 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +2 -3
- package/dist/lazyModules/ChartJs/Plugins/Title.js +1 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +1 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.js +1 -2
- package/dist/lazyModules/Swiper/Autoplay/index.js +2 -3
- package/dist/lazyModules/Swiper/Controller/factory.js +1 -2
- package/dist/lazyModules/Swiper/Controller/index.js +2 -3
- package/dist/lazyModules/Swiper/FreeMode/factory.js +1 -2
- package/dist/lazyModules/Swiper/FreeMode/index.js +2 -3
- package/dist/lazyModules/Swiper/Keyboard/factory.js +1 -2
- package/dist/lazyModules/Swiper/Keyboard/index.js +2 -3
- package/dist/lazyModules/Swiper/Navigation/factory.js +1 -2
- package/dist/lazyModules/Swiper/Navigation/index.js +2 -3
- package/dist/lazyModules/Swiper/Pagination/factory.js +1 -2
- package/dist/lazyModules/Swiper/Pagination/index.js +2 -3
- package/dist/lazyModules/Swiper/Thumbs/factory.js +1 -2
- package/dist/lazyModules/Swiper/Thumbs/index.js +2 -3
- package/dist/lazyModules/Swiper/Zoom/factory.js +1 -2
- package/dist/lazyModules/Swiper/Zoom/index.js +2 -3
- package/dist/lazyModules/Swiper/factory.js +1 -2
- package/dist/lazyModules/Swiper/index.js +2 -3
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +1 -2
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +1 -2
- package/dist/lazyModules/VueChartJs/Line/factory.js +1 -2
- package/dist/lazyModules/VueChartJs/Line/index.js +1 -2
- package/dist/utils.js +1 -2
- package/package.json +31 -31
- package/dist/assets/BaseAccordionItem.css +0 -1
- package/dist/assets/BaseSlider2.css +0 -1
- package/dist/assets/BaseSnackbar.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/SwiperRootPrimitive.css +0 -1
- package/dist/assets/SwiperRootPrimitive2.css +0 -1
- package/dist/assets/baseComplexToggle.css +0 -1
- package/dist/assets/baseFloatingLabel.css +0 -1
- package/dist/assets/baseInput.css +0 -1
- package/dist/assets/baseModal.css +0 -1
- package/dist/assets/baseSlider.css +0 -1
- package/dist/assets/baseSpinner.css +0 -1
- package/dist/assets/baseTextarea.css +0 -1
- package/dist/assets/baseTooltip.css +0 -1
- package/dist/assets/swiper-autoplay.css +0 -1
- /package/dist/{assets → css}/AccessibleSelect.css +0 -0
- /package/dist/{assets/baseAlert.css → css/BaseAlert.css} +0 -0
- /package/dist/{assets → css}/BaseAutocomplete.css +0 -0
- /package/dist/{assets → css}/BaseBadge.css +0 -0
- /package/dist/{assets/baseCard.css → css/BaseCard.css} +0 -0
- /package/dist/{assets/BaseComplexToggle2.css → css/BaseComplexToggle.css} +0 -0
- /package/dist/{assets → css}/BaseDropDown.css +0 -0
- /package/dist/{assets/BaseFloatingLabel2.css → css/BaseFloatingLabel.css} +0 -0
- /package/dist/{assets → css}/BaseShimmerLoader.css +0 -0
- /package/dist/{assets → css}/BaseTabs.css +0 -0
- /package/dist/{assets → css}/BaseTabsIndicator.css +0 -0
- /package/dist/{assets/BaseTextarea2.css → css/BaseTextarea.css} +0 -0
- /package/dist/{assets/BaseTooltip2.css → css/BaseTooltip.css} +0 -0
- /package/dist/{assets → css}/CheckboxBtn.css +0 -0
- /package/dist/{assets → css}/RadioButtonItem.css +0 -0
- /package/dist/{assets → css}/SimpleSlider.css +0 -0
- /package/dist/{assets → css}/StaticSpinner.css +0 -0
- /package/dist/{assets/swiperPaginationBullet.css → css/SwiperPaginationPrimitive.css} +0 -0
- /package/dist/{assets → css}/SwiperSlideImagePrimitive.css +0 -0
- /package/dist/{assets → css}/swiper-free-mode.css +0 -0
- /package/dist/{assets → css}/swiper-navigation.css +0 -0
- /package/dist/{assets → css}/swiper-pagination.css +0 -0
- /package/dist/{assets → css}/swiper-swiper.css +0 -0
- /package/dist/{assets → css}/swiper-zoom.css +0 -0
- /package/dist/{assets → css}/tailwind.css +0 -0
- /package/dist/{assets → css}/tokens.css +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { createBlock as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, ref as s, renderSlot as c, watch as l } from "vue";
|
|
2
|
+
import u from "./BaseFloatingLabel.js";
|
|
3
|
+
// lib/UIKit/BaseUploadFile.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var d = ["innerHTML"], f = ["for"], p = [
|
|
5
5
|
"id",
|
|
6
6
|
"multiple",
|
|
7
7
|
"accept"
|
|
8
|
-
], m = /*@__PURE__*/
|
|
8
|
+
], m = /*@__PURE__*/ i({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseUploadFile",
|
|
11
11
|
props: {
|
|
@@ -21,9 +21,9 @@ var d = ["innerHTML"], f = ["for"], p = [
|
|
|
21
21
|
legendClasses: { default: "" }
|
|
22
22
|
},
|
|
23
23
|
emits: ["cleared", "uploaded"],
|
|
24
|
-
setup(
|
|
25
|
-
let h =
|
|
26
|
-
|
|
24
|
+
setup(i, { emit: m }) {
|
|
25
|
+
let h = i, g = m, _ = s("");
|
|
26
|
+
l(() => h.clear, (e) => {
|
|
27
27
|
e && (_.value = "", g("cleared"));
|
|
28
28
|
});
|
|
29
29
|
let v = ({ target: e }) => {
|
|
@@ -31,34 +31,33 @@ var d = ["innerHTML"], f = ["for"], p = [
|
|
|
31
31
|
let t = e.files;
|
|
32
32
|
t?.length && (_.value = t[0].name, g("uploaded", t[0]));
|
|
33
33
|
};
|
|
34
|
-
return (
|
|
35
|
-
|
|
34
|
+
return (s, l) => (o(), n("div", { class: a(["base-upload-file-wrapper uikit-relative", [s.$attrs.class]]) }, [
|
|
35
|
+
r("fieldset", { class: a(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-dashed uikit-border-w-secondary uikit-bg-w-lavender uikit-px-2 uikit-py-0 uikit-text-start", i.fieldsetClasses]) }, [i.labelText ? (o(), n("legend", {
|
|
36
36
|
key: 0,
|
|
37
|
-
class:
|
|
38
|
-
}, [
|
|
37
|
+
class: a(["uikit-invisible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text", i.legendClasses])
|
|
38
|
+
}, [r("span", {
|
|
39
39
|
class: "uikit-visible uikit-inline-block uikit-px-5px uikit-opacity-0",
|
|
40
|
-
innerHTML:
|
|
41
|
-
}, null, 8, d)], 2)) :
|
|
42
|
-
|
|
40
|
+
innerHTML: i.labelText
|
|
41
|
+
}, null, 8, d)], 2)) : t("", !0)], 2),
|
|
42
|
+
i.labelText ? (o(), e(u, {
|
|
43
43
|
key: 0,
|
|
44
|
-
class:
|
|
45
|
-
"label-text":
|
|
44
|
+
class: a(i.floatingLabelClasses),
|
|
45
|
+
"label-text": i.labelText,
|
|
46
46
|
"label-state": "floating-label",
|
|
47
47
|
"label-classes": "!-uikit-top-1"
|
|
48
|
-
}, null, 8, ["class", "label-text"])) :
|
|
49
|
-
|
|
50
|
-
class:
|
|
51
|
-
for:
|
|
52
|
-
}, [
|
|
53
|
-
id:
|
|
54
|
-
multiple:
|
|
48
|
+
}, null, 8, ["class", "label-text"])) : t("", !0),
|
|
49
|
+
r("label", {
|
|
50
|
+
class: a(["upload-file-input uikit-relative uikit-z-10 uikit-flex uikit-h-12 uikit-w-full uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-xs uikit-text-sm", i.labelClasses]),
|
|
51
|
+
for: i.id
|
|
52
|
+
}, [r("input", {
|
|
53
|
+
id: i.id,
|
|
54
|
+
multiple: s.$attrs.multiple,
|
|
55
55
|
type: "file",
|
|
56
56
|
class: "uikit-hidden",
|
|
57
|
-
accept:
|
|
58
|
-
onInput:
|
|
59
|
-
}, null, 40, p),
|
|
57
|
+
accept: s.$attrs.accept,
|
|
58
|
+
onInput: l[0] ||= (e) => v(e)
|
|
59
|
+
}, null, 40, p), c(s.$slots, "label", { filename: _.value })], 10, f)
|
|
60
60
|
], 2));
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
//#endregion
|
|
64
63
|
export { m as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { computed as e, createBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, resolveDynamicComponent as s, withCtx as c } from "vue";
|
|
2
|
-
import '../../
|
|
2
|
+
import '../../css/BaseCard.css';/* empty css */
|
|
3
|
+
// lib/UIKit/Card/BaseCard.vue?vue&type=script&setup=true&lang.ts
|
|
3
4
|
var l = /*@__PURE__*/ r({
|
|
4
5
|
__name: "BaseCard",
|
|
5
6
|
props: {
|
|
@@ -20,5 +21,4 @@ var l = /*@__PURE__*/ r({
|
|
|
20
21
|
}, 8, ["class"]));
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
|
-
//#endregion
|
|
24
24
|
export { l as default };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
4
5
|
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
5
7
|
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { createElementBlock as e, openBlock as t, renderSlot as n } from "vue";
|
|
2
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// lib/UIKit/Card/CardDescriptionPrimitive.vue
|
|
4
4
|
var i = {}, a = { class: "card-body" };
|
|
5
|
-
function o(
|
|
6
|
-
return
|
|
5
|
+
function o(r, i) {
|
|
6
|
+
return t(), e("div", a, [n(r.$slots, "default")]);
|
|
7
7
|
}
|
|
8
|
-
var s = /*#__PURE__*/
|
|
9
|
-
//#endregion
|
|
8
|
+
var s = /*#__PURE__*/ r(i, [["render", o]]);
|
|
10
9
|
export { s as default };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
4
5
|
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
5
7
|
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var c = /*@__PURE__*/
|
|
1
|
+
import { computed as e, createElementBlock as t, defineComponent as n, inject as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
|
|
2
|
+
import { CardTypeKey as s } from "./type.js";
|
|
3
|
+
// lib/UIKit/Card/CardImagePrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = /*@__PURE__*/ n({
|
|
5
5
|
__name: "CardImagePrimitive",
|
|
6
|
-
setup(
|
|
7
|
-
let c =
|
|
8
|
-
return (e,
|
|
6
|
+
setup(n) {
|
|
7
|
+
let c = r(s, void 0), l = e(() => c ? `${c}-img` : "");
|
|
8
|
+
return (e, n) => (a(), t("div", { class: i(["card-img", [l.value]]) }, [o(e.$slots, "default")], 2));
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { c as default };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { computed as e, createBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, provide as a, renderSlot as o, resolveDynamicComponent as s, withCtx as c } from "vue";
|
|
2
|
+
import '../../css/BaseCard.css';/* empty css */
|
|
3
|
+
import { CardTypeKey as l } from "./type.js";
|
|
4
|
+
// lib/UIKit/Card/CardRootPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var u = /*@__PURE__*/ n({
|
|
5
6
|
__name: "CardRootPrimitive",
|
|
6
7
|
props: {
|
|
7
8
|
type: { default: "" },
|
|
8
9
|
as: { default: "div" }
|
|
9
10
|
},
|
|
10
11
|
emits: ["click"],
|
|
11
|
-
setup(
|
|
12
|
-
let d = u, f =
|
|
13
|
-
return
|
|
14
|
-
class:
|
|
15
|
-
onClick:
|
|
12
|
+
setup(n, { emit: u }) {
|
|
13
|
+
let d = u, f = e(() => n.type === "news" ? "news-card" : n.type);
|
|
14
|
+
return a(l, n.type), (e, a) => (i(), t(s(n.as), {
|
|
15
|
+
class: r(["uikit-card", f.value]),
|
|
16
|
+
onClick: a[0] ||= (e) => d("click", e)
|
|
16
17
|
}, {
|
|
17
|
-
default:
|
|
18
|
+
default: c(() => [o(e.$slots, "default")]),
|
|
18
19
|
_: 3
|
|
19
20
|
}, 8, ["class"]));
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
|
-
//#endregion
|
|
23
23
|
export { u as default };
|
package/dist/UIKit/Card/type.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createBlock as e, createCommentVNode as t, createElementBlock as n, createTextVNode as r, createVNode as i, defineComponent as a, inject as o, mergeModels as s, normalizeClass as c, onMounted as l, onUnmounted as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useId as h, useModel as g, useTemplateRef as _, watch as v, withCtx as y } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../../
|
|
2
|
+
import { CheckIcon as b } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
import { CheckboxIndicator as x, CheckboxRoot as S } from "reka-ui";
|
|
4
|
+
import '../../css/CheckboxBtn.css';// lib/UIKit/Checkbox/CheckboxBtn.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var C = /*@__PURE__*/ a({
|
|
6
6
|
__name: "CheckboxBtn",
|
|
7
7
|
props: /*@__PURE__*/ s({
|
|
@@ -47,7 +47,7 @@ var C = /*@__PURE__*/ a({
|
|
|
47
47
|
ref: "root",
|
|
48
48
|
class: "uikit-checkbox-btn uikit-flex uikit-items-center uikit-gap-[12px]",
|
|
49
49
|
onClick: s[0] ||= (e) => O("click", e)
|
|
50
|
-
}, [i(m(
|
|
50
|
+
}, [i(m(S), {
|
|
51
51
|
ref: "checkboxRoot",
|
|
52
52
|
"model-value": D.value,
|
|
53
53
|
"data-cy": a.dataCy,
|
|
@@ -55,8 +55,8 @@ var C = /*@__PURE__*/ a({
|
|
|
55
55
|
class: c(["uikit-inline-flex uikit-size-[20px] uikit-shrink-0 uikit-items-center uikit-justify-center uikit-rounded-[4px] uikit-p-0 data-[state='unchecked']:uikit-border data-[state='unchecked']:uikit-border-solid data-[state='unchecked']:uikit-border-w-lightgray data-[state='checked']:uikit-bg-w-primary data-[state='unchecked']:uikit-bg-white", a.inputClass]),
|
|
56
56
|
"onUpdate:modelValue": k
|
|
57
57
|
}, {
|
|
58
|
-
default: y(() => [i(m(
|
|
59
|
-
default: y(() => [D.value === !0 ? (d(), e(m(
|
|
58
|
+
default: y(() => [i(m(x), { class: "uikit-flex" }, {
|
|
59
|
+
default: y(() => [D.value === !0 ? (d(), e(m(b), {
|
|
60
60
|
key: 0,
|
|
61
61
|
"fill-color": "#fff",
|
|
62
62
|
width: 12,
|
|
@@ -73,5 +73,4 @@ var C = /*@__PURE__*/ a({
|
|
|
73
73
|
]), f(o.$slots, "label", {}, () => [r(p(a.label), 1)])], 512));
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
//#endregion
|
|
77
76
|
export { C as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
var y = ["id", "data-cy"], b = /*@__PURE__*/
|
|
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
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "CheckboxGroup",
|
|
8
|
-
props: /*@__PURE__*/
|
|
8
|
+
props: /*@__PURE__*/ s({
|
|
9
9
|
checkboxData: { default() {
|
|
10
10
|
return [];
|
|
11
11
|
} },
|
|
@@ -43,16 +43,16 @@ var y = ["id", "data-cy"], b = /*@__PURE__*/ s({
|
|
|
43
43
|
},
|
|
44
44
|
refreshModifiers: {}
|
|
45
45
|
}),
|
|
46
|
-
emits: /*@__PURE__*/
|
|
46
|
+
emits: /*@__PURE__*/ s([
|
|
47
47
|
"resetted",
|
|
48
48
|
"update:modelValue",
|
|
49
49
|
"checkedGroup"
|
|
50
50
|
], ["update:refresh"]),
|
|
51
|
-
setup(
|
|
52
|
-
let b =
|
|
51
|
+
setup(o, { emit: s }) {
|
|
52
|
+
let b = o, x = s, S = m(o, "refresh"), C = u(/* @__PURE__ */ new Map()), w = t(() => {
|
|
53
53
|
for (let e of b.checkboxData) if (e.reset) return e;
|
|
54
54
|
return null;
|
|
55
|
-
}), T =
|
|
55
|
+
}), T = t(() => b.checkboxData.length), E = t(() => {
|
|
56
56
|
let e = 0;
|
|
57
57
|
return C.value.forEach((t) => {
|
|
58
58
|
t.checked && e++;
|
|
@@ -68,19 +68,13 @@ var y = ["id", "data-cy"], b = /*@__PURE__*/ s({
|
|
|
68
68
|
D();
|
|
69
69
|
let O = (e, t) => {
|
|
70
70
|
let n = C.value.get(e);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
C.value.set(e, {
|
|
80
|
-
...n,
|
|
81
|
-
checked: !n.checked
|
|
82
|
-
});
|
|
83
|
-
}
|
|
71
|
+
n && (t ? C.value.set(e, {
|
|
72
|
+
...n,
|
|
73
|
+
...t
|
|
74
|
+
}) : C.value.set(e, {
|
|
75
|
+
...n,
|
|
76
|
+
checked: !n.checked
|
|
77
|
+
}));
|
|
84
78
|
}, k = () => {
|
|
85
79
|
C.value.forEach((e) => {
|
|
86
80
|
e.checked = !1;
|
|
@@ -88,42 +82,42 @@ var y = ["id", "data-cy"], b = /*@__PURE__*/ s({
|
|
|
88
82
|
}, A = () => {
|
|
89
83
|
k(), x("update:modelValue", []), x("resetted");
|
|
90
84
|
}, j = (e) => C.value.get(b.getKey(e))?.checked ?? !1, M = (e) => {
|
|
91
|
-
if (
|
|
85
|
+
if (g(b.checkboxData)) return;
|
|
92
86
|
let t = C.value.get(e.id);
|
|
93
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) => {
|
|
94
88
|
e.checked = !!e.reset;
|
|
95
|
-
}), b.autoCheckResetEmpty
|
|
89
|
+
}), !b.autoCheckResetEmpty || !w.value || E.value || b.manualToggleResetButton && t?.reset || O(b.getKey(w.value), { checked: !0 });
|
|
96
90
|
let n = [];
|
|
97
91
|
C.value.forEach((e) => {
|
|
98
92
|
e.checked && n.push(e);
|
|
99
93
|
}), x("update:modelValue", n), x("checkedGroup", b.groupId);
|
|
100
94
|
};
|
|
101
|
-
return
|
|
95
|
+
return h(() => b.reset, (e) => {
|
|
102
96
|
e && A();
|
|
103
|
-
}),
|
|
97
|
+
}), h(S, (e) => {
|
|
104
98
|
e && (D(), S.value = !1);
|
|
105
|
-
}), (
|
|
99
|
+
}), (t, s) => f(t.$slots, "default", {
|
|
106
100
|
isActive: j,
|
|
107
101
|
handleChange: M,
|
|
108
|
-
checkboxesData:
|
|
109
|
-
}, () => [
|
|
110
|
-
id:
|
|
111
|
-
class:
|
|
112
|
-
"data-cy":
|
|
113
|
-
}, [
|
|
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", {
|
|
114
108
|
isActive: j,
|
|
115
109
|
handleChange: M,
|
|
116
|
-
checkboxesData:
|
|
110
|
+
checkboxesData: o.checkboxData,
|
|
117
111
|
reset: A
|
|
118
|
-
}, () => [
|
|
119
|
-
id:
|
|
120
|
-
key:
|
|
121
|
-
"data-cy":
|
|
122
|
-
label:
|
|
123
|
-
inline:
|
|
124
|
-
"model-value": j(
|
|
125
|
-
class:
|
|
126
|
-
onChange:
|
|
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)
|
|
127
121
|
}, null, 8, [
|
|
128
122
|
"id",
|
|
129
123
|
"data-cy",
|
|
@@ -131,8 +125,7 @@ var y = ["id", "data-cy"], b = /*@__PURE__*/ s({
|
|
|
131
125
|
"inline",
|
|
132
126
|
"model-value",
|
|
133
127
|
"class"
|
|
134
|
-
]))), 128)) :
|
|
128
|
+
]))), 128)) : r("", !0)])], 10, y)]);
|
|
135
129
|
}
|
|
136
130
|
});
|
|
137
|
-
//#endregion
|
|
138
131
|
export { b as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var h = ["data-cy"], g = /*@__PURE__*/
|
|
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
5
|
__name: "CheckboxButtonGroup",
|
|
6
|
-
props: /*@__PURE__*/
|
|
6
|
+
props: /*@__PURE__*/ a({
|
|
7
7
|
dataCy: {},
|
|
8
8
|
items: { default: () => [] },
|
|
9
9
|
resetValue: {}
|
|
@@ -17,42 +17,32 @@ var h = ["data-cy"], g = /*@__PURE__*/ a({
|
|
|
17
17
|
resetModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue", "update:reset"],
|
|
20
|
-
setup(
|
|
21
|
-
let
|
|
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
22
|
if (!e) return;
|
|
23
23
|
let n = [];
|
|
24
|
-
|
|
25
|
-
o.value = n;
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
n = n.filter((e) => e !== a.resetValue), Array.from(_.keys()).filter((e) => !n.includes(e)).length === _.size && (n = [a.resetValue], _.get(a.resetValue)?.focus?.()), n.length === _.size - 1 && (n = [a.resetValue], _.get(a.resetValue)?.focus?.()), o.value = 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;
|
|
29
25
|
}, b = (e) => {
|
|
30
|
-
|
|
31
|
-
if (e) {
|
|
32
|
-
o.value = [a.resetValue];
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
o.value = o.value.filter((e) => e !== a.resetValue);
|
|
36
|
-
}
|
|
26
|
+
i.resetValue && (e ? a.value = [i.resetValue] : a.value = a.value.filter((e) => e !== i.resetValue));
|
|
37
27
|
};
|
|
38
|
-
return
|
|
28
|
+
return s("addItem", (e, t) => {
|
|
39
29
|
e && t && _.set(e, t);
|
|
40
|
-
}),
|
|
30
|
+
}), s("removeItem", (e) => {
|
|
41
31
|
e && _.delete(e);
|
|
42
|
-
}),
|
|
43
|
-
e && (
|
|
44
|
-
}), (
|
|
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", {
|
|
45
35
|
isChecked: v,
|
|
46
36
|
handleCheck: y,
|
|
47
37
|
handleResetCheck: b
|
|
48
|
-
}, () => [(
|
|
49
|
-
key: `checkbox-item-${
|
|
50
|
-
required:
|
|
51
|
-
"data-cy":
|
|
52
|
-
"model-value": v(
|
|
53
|
-
"onUpdate:modelValue": (
|
|
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)
|
|
54
44
|
}, {
|
|
55
|
-
label:
|
|
45
|
+
label: p(() => [r(u(e.label), 1)]),
|
|
56
46
|
_: 2
|
|
57
47
|
}, 1032, [
|
|
58
48
|
"required",
|
|
@@ -62,5 +52,4 @@ var h = ["data-cy"], g = /*@__PURE__*/ a({
|
|
|
62
52
|
]))), 128))])], 8, h));
|
|
63
53
|
}
|
|
64
54
|
});
|
|
65
|
-
//#endregion
|
|
66
55
|
export { g as default };
|
|
@@ -17,7 +17,7 @@ declare const __VLS_export: <T, TValue extends CheckboxRootProps["value"] | unde
|
|
|
17
17
|
slots: {
|
|
18
18
|
default?: (props: {
|
|
19
19
|
modelValue: "indeterminate" | T;
|
|
20
|
-
state:
|
|
20
|
+
state: boolean | "indeterminate";
|
|
21
21
|
}) => any;
|
|
22
22
|
};
|
|
23
23
|
emit: (evt: "update:modelValue", value: "indeterminate" | T) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { CheckboxRoot as u } from "reka-ui";
|
|
3
|
-
|
|
3
|
+
// lib/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var d = /*@__PURE__*/ n({
|
|
5
5
|
__name: "CheckboxGroupItemPrimitive",
|
|
6
6
|
props: {
|
|
@@ -9,11 +9,16 @@ var d = /*@__PURE__*/ n({
|
|
|
9
9
|
defaultValue: {},
|
|
10
10
|
modelValue: {},
|
|
11
11
|
disabled: { type: Boolean },
|
|
12
|
+
parent: { type: Boolean },
|
|
12
13
|
id: {},
|
|
13
14
|
trueValue: {},
|
|
14
15
|
falseValue: {},
|
|
15
16
|
asChild: { type: Boolean },
|
|
16
|
-
as: {
|
|
17
|
+
as: { type: [
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Function
|
|
21
|
+
] },
|
|
17
22
|
name: {},
|
|
18
23
|
required: { type: Boolean }
|
|
19
24
|
},
|
|
@@ -29,5 +34,4 @@ var d = /*@__PURE__*/ n({
|
|
|
29
34
|
}, 16, ["data-cy"]));
|
|
30
35
|
}
|
|
31
36
|
});
|
|
32
|
-
//#endregion
|
|
33
37
|
export { d as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { CheckboxGroupRoot as c } from "reka-ui";
|
|
3
|
-
|
|
3
|
+
// lib/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var l = /*@__PURE__*/ n({
|
|
5
5
|
__name: "CheckboxGroupPrimitive",
|
|
6
6
|
props: {
|
|
@@ -9,7 +9,13 @@ var l = /*@__PURE__*/ n({
|
|
|
9
9
|
modelValue: {},
|
|
10
10
|
rovingFocus: { type: Boolean },
|
|
11
11
|
disabled: { type: Boolean },
|
|
12
|
-
|
|
12
|
+
max: {},
|
|
13
|
+
allValues: {},
|
|
14
|
+
as: { type: [
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Function
|
|
18
|
+
] },
|
|
13
19
|
asChild: { type: Boolean },
|
|
14
20
|
dir: {},
|
|
15
21
|
orientation: {},
|
|
@@ -29,5 +35,4 @@ var l = /*@__PURE__*/ n({
|
|
|
29
35
|
}, 16, ["data-cy"]));
|
|
30
36
|
}
|
|
31
37
|
});
|
|
32
|
-
//#endregion
|
|
33
38
|
export { l as default };
|