@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,8 +1,8 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import '../../
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, isMemoSame as c, mergeModels as l, normalizeClass as u, normalizeStyle as d, onMounted as ee, onUnmounted as te, openBlock as f, renderList as ne, renderSlot as p, shallowRef as m, toDisplayString as re, unref as ie, useId as ae, useModel as h, useTemplateRef as g, vModelText as _, vShow as oe, watch as v, withCtx as y, withDirectives as b, withModifiers as se } from "vue";
|
|
2
|
+
import ce from "../BaseDropDown.js";
|
|
3
|
+
import le from "../BaseSelect/SelectItem.js";
|
|
4
|
+
import { afterPaint as x } from "../frameUtils.js";
|
|
5
|
+
import '../../css/ClearableAutocomplete.css';// lib/UIKit/Autocomplete/ClearableAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var ue = [
|
|
7
7
|
"id",
|
|
8
8
|
"data-cy",
|
|
@@ -11,9 +11,9 @@ var ue = [
|
|
|
11
11
|
key: 1,
|
|
12
12
|
name: "loading-state",
|
|
13
13
|
class: "uikit-progress-bar-track uikit-absolute uikit-left-0 uikit-top-0 uikit-w-full"
|
|
14
|
-
}, pe = ["innerHTML"], S = /*@__PURE__*/
|
|
14
|
+
}, pe = ["innerHTML"], S = /*@__PURE__*/ s({
|
|
15
15
|
__name: "ClearableAutocomplete",
|
|
16
|
-
props: /*@__PURE__*/
|
|
16
|
+
props: /*@__PURE__*/ l({
|
|
17
17
|
dataCy: {},
|
|
18
18
|
placeholder: {},
|
|
19
19
|
enableKeyboardController: {
|
|
@@ -44,7 +44,7 @@ var ue = [
|
|
|
44
44
|
inputValue: { default: "" },
|
|
45
45
|
inputValueModifiers: {}
|
|
46
46
|
}),
|
|
47
|
-
emits: /*@__PURE__*/
|
|
47
|
+
emits: /*@__PURE__*/ l([
|
|
48
48
|
"input",
|
|
49
49
|
"click",
|
|
50
50
|
"inputClick",
|
|
@@ -54,8 +54,8 @@ var ue = [
|
|
|
54
54
|
"update:modelValue",
|
|
55
55
|
"update:inputValue"
|
|
56
56
|
]),
|
|
57
|
-
setup(
|
|
58
|
-
let C =
|
|
57
|
+
setup(s, { expose: l, emit: S }) {
|
|
58
|
+
let C = h(s, "open"), w = h(s, "modelValue"), T = h(s, "inputValue"), E = S, me = ae(), D = g("inputRef"), O = m(0), k = m(!1), A = m(!1), j = m(!1), M = m(-1), N = m(-1), P = m([]), he = t(() => ["uikit-z-30", s.dropdownClasses]), F = null, I = 0, L = g("dropdownRef"), R = g("hiddenSpan"), z = g("inputWrapperRef"), B = g("clearButtonRef"), V = () => {
|
|
59
59
|
M.value = -1, N.value = -1;
|
|
60
60
|
}, H = () => {
|
|
61
61
|
F &&= (clearTimeout(F), null), I += 1, A.value = !1, j.value = !1;
|
|
@@ -70,7 +70,7 @@ var ue = [
|
|
|
70
70
|
F = null, C.value = !0, j.value = !0;
|
|
71
71
|
let n = [];
|
|
72
72
|
try {
|
|
73
|
-
n = await
|
|
73
|
+
n = await s.onInputChangeCb(e);
|
|
74
74
|
} catch {
|
|
75
75
|
n = [];
|
|
76
76
|
}
|
|
@@ -78,25 +78,17 @@ var ue = [
|
|
|
78
78
|
}, 300);
|
|
79
79
|
}, K = () => {
|
|
80
80
|
H(), W(), C.value = !1, T.value = "", w.value = null, k.value = !1, O.value = 0, V();
|
|
81
|
-
},
|
|
81
|
+
}, _e = () => {
|
|
82
82
|
K();
|
|
83
|
-
}, _e = (e) => {
|
|
84
|
-
if (!e) {
|
|
85
|
-
K();
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
if (u.disableCb && e === w.value?.label) {
|
|
89
|
-
H(), G();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
ge(e);
|
|
93
83
|
}, ve = (e) => {
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
84
|
+
e ? s.disableCb && e === w.value?.label ? (H(), G()) : ge(e) : K();
|
|
85
|
+
}, ye = (e) => {
|
|
86
|
+
E("input", e), k.value = !1, O.value = 0, e.isComposing || ve(e.target.value);
|
|
87
|
+
}, q = (e = -1, t) => {
|
|
88
|
+
let n = P.value[e];
|
|
89
|
+
n && n.id !== w.value?.id && (N.value = e, s.onOptionSelectedCb?.(n, { trigger: t }), T.value = n.label, C.value = !1, w.value = n, k.value = !0, H(), U = !0, x(G));
|
|
90
|
+
}, J = (e) => {
|
|
91
|
+
if (!s.enableKeyboardController || !C.value || ![
|
|
100
92
|
"ArrowUp",
|
|
101
93
|
"ArrowDown",
|
|
102
94
|
"Enter",
|
|
@@ -123,12 +115,12 @@ var ue = [
|
|
|
123
115
|
else if (e.key === "ArrowDown") M.value = M.value >= t ? 0 : M.value + 1;
|
|
124
116
|
else if (e.key === "Enter") {
|
|
125
117
|
if (M.value === -1) return;
|
|
126
|
-
e.preventDefault(),
|
|
118
|
+
e.preventDefault(), q(M.value, "enter");
|
|
127
119
|
} else e.key === "PageUp" || e.key === "Home" ? M.value = 0 : (e.key === "PageDown" || e.key === "End") && (M.value = t);
|
|
128
120
|
e.stopPropagation();
|
|
129
|
-
},
|
|
130
|
-
E("keydown", e),
|
|
131
|
-
},
|
|
121
|
+
}, be = (e) => {
|
|
122
|
+
E("keydown", e), J(e);
|
|
123
|
+
}, Y = () => {
|
|
132
124
|
H(), W(), V(), C.value = !1;
|
|
133
125
|
}, xe = () => {
|
|
134
126
|
D.value?.select();
|
|
@@ -140,126 +132,122 @@ var ue = [
|
|
|
140
132
|
if (!e || !t) return;
|
|
141
133
|
let r = e.offsetWidth, i = t.offsetWidth;
|
|
142
134
|
if (!i) return;
|
|
143
|
-
let a =
|
|
144
|
-
|
|
135
|
+
let a = s.clearButton?.offset || 0, o = s.clearButton?.width || n?.offsetWidth || 0, c = i - a - o, l = Math.min(r, c);
|
|
136
|
+
l !== O.value && (O.value = l);
|
|
145
137
|
}, Q = !1, $ = () => {
|
|
146
|
-
Q || (Q = !0,
|
|
138
|
+
Q || (Q = !0, x(() => {
|
|
147
139
|
Q = !1, Z();
|
|
148
140
|
}));
|
|
149
141
|
};
|
|
150
|
-
return
|
|
142
|
+
return ee(() => {
|
|
151
143
|
z.value && (X = new ResizeObserver(() => {
|
|
152
|
-
|
|
153
|
-
Z();
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
$();
|
|
144
|
+
O.value ? Z() : $();
|
|
157
145
|
}), X.observe(z.value));
|
|
158
|
-
}),
|
|
146
|
+
}), te(() => {
|
|
159
147
|
X?.disconnect(), H();
|
|
160
|
-
}),
|
|
148
|
+
}), v([
|
|
161
149
|
T,
|
|
162
150
|
k,
|
|
163
151
|
R,
|
|
164
152
|
B
|
|
165
153
|
], () => {
|
|
166
154
|
$();
|
|
167
|
-
}),
|
|
155
|
+
}), v(w, (e) => {
|
|
168
156
|
if (e?.label === T.value) return;
|
|
169
157
|
let t = e?.label || "";
|
|
170
158
|
T.value = t, t && (k.value = !0);
|
|
171
|
-
}, { immediate: !0 }),
|
|
159
|
+
}, { immediate: !0 }), l({
|
|
172
160
|
getRootElement: () => L.value?.getRootElement(),
|
|
173
|
-
clearSuggestions:
|
|
161
|
+
clearSuggestions: Y,
|
|
174
162
|
select: xe,
|
|
175
163
|
focus: Se
|
|
176
|
-
}), (
|
|
164
|
+
}), (t, l) => (f(), n(ce, {
|
|
177
165
|
ref: "dropdownRef",
|
|
178
166
|
class: "uikit-clearable-autocomplete",
|
|
179
|
-
"data-cy":
|
|
167
|
+
"data-cy": s.dataCy,
|
|
180
168
|
"dropdown-element": "ul",
|
|
181
169
|
"dropdown-classes": he.value,
|
|
182
|
-
"keep-state":
|
|
170
|
+
"keep-state": s.keepState === "closed" ? "closed" : "opened",
|
|
183
171
|
"activate-keyboard-controller": !1,
|
|
184
172
|
open: C.value,
|
|
185
|
-
"onUpdate:open":
|
|
173
|
+
"onUpdate:open": l[5] ||= (e) => C.value = e
|
|
186
174
|
}, {
|
|
187
|
-
btn_slot:
|
|
188
|
-
class:
|
|
189
|
-
onClick:
|
|
175
|
+
btn_slot: y(() => [a("div", {
|
|
176
|
+
class: u(["uikit-text-16", s.triggerWrapperClasses]),
|
|
177
|
+
onClick: l[2] ||= (e) => E("click", e)
|
|
190
178
|
}, [
|
|
191
|
-
|
|
192
|
-
|
|
179
|
+
p(t.$slots, "left-icon"),
|
|
180
|
+
a("div", {
|
|
193
181
|
ref: "inputWrapperRef",
|
|
194
|
-
class:
|
|
182
|
+
class: u(["uikit-relative", s.inputWrapperClasses])
|
|
195
183
|
}, [
|
|
196
|
-
|
|
184
|
+
b(a("input", {
|
|
197
185
|
ref: "inputRef",
|
|
198
|
-
"onUpdate:modelValue":
|
|
199
|
-
id:
|
|
200
|
-
"data-cy":
|
|
186
|
+
"onUpdate:modelValue": l[0] ||= (e) => T.value = e,
|
|
187
|
+
id: ie(me),
|
|
188
|
+
"data-cy": s.dataCy ? `ac_input_${s.dataCy}` : "",
|
|
201
189
|
type: "text",
|
|
202
190
|
autocomplete: "off",
|
|
203
|
-
class:
|
|
191
|
+
class: u(["uikit-w-full uikit-border-none focus-visible:uikit-outline-none", s.inputClasses]),
|
|
204
192
|
style: {
|
|
205
193
|
font: "inherit",
|
|
206
194
|
fontSize: "inherit"
|
|
207
195
|
},
|
|
208
|
-
placeholder:
|
|
209
|
-
onKeydown:
|
|
210
|
-
onInput:
|
|
211
|
-
onClick:
|
|
196
|
+
placeholder: s.placeholder,
|
|
197
|
+
onKeydown: be,
|
|
198
|
+
onInput: ye,
|
|
199
|
+
onClick: l[1] ||= (e) => {
|
|
212
200
|
E("inputClick", e), D.value?.select();
|
|
213
201
|
}
|
|
214
|
-
}, null, 42, ue), [[
|
|
215
|
-
|
|
202
|
+
}, null, 42, ue), [[_, T.value]]),
|
|
203
|
+
a("span", {
|
|
216
204
|
ref_key: "hiddenSpan",
|
|
217
205
|
ref: R,
|
|
218
|
-
class:
|
|
206
|
+
class: u(["uikit-invisible uikit-absolute uikit-left-0 uikit-top-0 uikit-max-w-full uikit-overflow-hidden uikit-whitespace-pre", s.hiddenTextClasses]),
|
|
219
207
|
style: {
|
|
220
208
|
font: "inherit",
|
|
221
209
|
fontSize: "inherit"
|
|
222
210
|
}
|
|
223
|
-
},
|
|
224
|
-
|
|
211
|
+
}, re(T.value), 3),
|
|
212
|
+
b(a("button", {
|
|
225
213
|
ref: "clearButtonRef",
|
|
226
214
|
type: "button",
|
|
227
|
-
class:
|
|
228
|
-
"data-cy":
|
|
215
|
+
class: u(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", s.clearButton?.classes]),
|
|
216
|
+
"data-cy": s.clearButton?.dataCy || "clear-btn",
|
|
229
217
|
"aria-label": "Clear input",
|
|
230
|
-
style:
|
|
231
|
-
left: `${O.value + (
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
218
|
+
style: d({
|
|
219
|
+
left: `${O.value + (s.clearButton?.offset || 0)}px`,
|
|
220
|
+
width: s.clearButton?.width ? `${s.clearButton.width}px` : "auto",
|
|
221
|
+
height: s.clearButton?.height ? `${s.clearButton.height}px` : "auto"
|
|
234
222
|
}),
|
|
235
|
-
onClick:
|
|
236
|
-
}, [
|
|
223
|
+
onClick: se(_e, ["stop"])
|
|
224
|
+
}, [p(t.$slots, "clear-icon", {}, () => [l[6] ||= o("X", -1)])], 14, de), [[oe, k.value && O.value]])
|
|
237
225
|
], 2),
|
|
238
|
-
|
|
226
|
+
p(t.$slots, "right-icon")
|
|
239
227
|
], 2)]),
|
|
240
|
-
default:
|
|
241
|
-
j.value && !P.value.length ?
|
|
242
|
-
A.value && P.value.length ? (
|
|
243
|
-
P.value.length ? (
|
|
244
|
-
let
|
|
245
|
-
|
|
228
|
+
default: y(() => [
|
|
229
|
+
j.value && !P.value.length ? p(t.$slots, "loading-state", {}, void 0, void 0, 0) : r("", !0),
|
|
230
|
+
A.value && P.value.length ? (f(), i("div", fe, [...l[7] ||= [a("div", { class: "uikit-progress-bar-fill" }, null, -1)]])) : r("", !0),
|
|
231
|
+
P.value.length ? (f(!0), i(e, { key: 2 }, ne(P.value, (e, r, i, o) => {
|
|
232
|
+
let l = [
|
|
233
|
+
e,
|
|
246
234
|
M.value === r,
|
|
247
|
-
|
|
235
|
+
s.enableKeyboardController
|
|
248
236
|
];
|
|
249
|
-
if (o && o.el && o.key === r &&
|
|
250
|
-
let
|
|
237
|
+
if (o && o.el && o.key === r && c(o, l)) return o;
|
|
238
|
+
let u = (f(), n(le, {
|
|
251
239
|
key: r,
|
|
252
240
|
active: M.value === r,
|
|
253
|
-
"focus-on-active":
|
|
241
|
+
"focus-on-active": s.enableKeyboardController,
|
|
254
242
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
255
|
-
onClick: (e) =>
|
|
256
|
-
onKeydown:
|
|
243
|
+
onClick: (e) => q(r, "click"),
|
|
244
|
+
onKeydown: J,
|
|
257
245
|
onMouseover: (e) => M.value = r
|
|
258
246
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
option:
|
|
247
|
+
default: y(() => [p(t.$slots, "option-content", {
|
|
248
|
+
option: e,
|
|
261
249
|
idx: r
|
|
262
|
-
}, () => [
|
|
250
|
+
}, () => [a("span", { innerHTML: e.label }, null, 8, pe)])]),
|
|
263
251
|
_: 2
|
|
264
252
|
}, 1032, [
|
|
265
253
|
"active",
|
|
@@ -267,8 +255,8 @@ var ue = [
|
|
|
267
255
|
"onClick",
|
|
268
256
|
"onMouseover"
|
|
269
257
|
]));
|
|
270
|
-
return
|
|
271
|
-
},
|
|
258
|
+
return u.memo = l, u;
|
|
259
|
+
}, l, 3), 128)) : r("", !0)
|
|
272
260
|
]),
|
|
273
261
|
_: 3
|
|
274
262
|
}, 8, [
|
|
@@ -279,5 +267,4 @@ var ue = [
|
|
|
279
267
|
]));
|
|
280
268
|
}
|
|
281
269
|
});
|
|
282
|
-
//#endregion
|
|
283
270
|
export { S as default };
|
|
@@ -5,10 +5,12 @@ type AlertClass = `${TwPrefix}${AlertClassPrefix}${AlertColors}` | "";
|
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
alertClass?: AlertClass;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
declare const __VLS_template: () => {
|
|
9
|
+
__VLS_Slots: {
|
|
10
|
+
default?: (props: {}) => any;
|
|
11
|
+
};
|
|
11
12
|
};
|
|
13
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
12
14
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
15
|
alertClass: AlertClass;
|
|
14
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/UIKit/BaseAlert.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
-
import '../
|
|
2
|
+
import '../css/BaseAlert.css';// lib/UIKit/BaseAlert.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var a = ["id"], o = /*@__PURE__*/ t({
|
|
4
4
|
__name: "BaseAlert",
|
|
5
5
|
props: { alertClass: { default: "" } },
|
|
@@ -11,5 +11,4 @@ var a = ["id"], o = /*@__PURE__*/ t({
|
|
|
11
11
|
}, [i(o.$slots, "default")], 10, a));
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
//#endregion
|
|
15
14
|
export { o as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, mergeModels as s, normalizeClass as c, onBeforeMount as l, openBlock as u, renderList as d, renderSlot as f, shallowRef as p, unref as m, useModel as h, useTemplateRef as g, watch as _, withCtx as v } from "vue";
|
|
2
|
+
import y from "./BaseInput.js";
|
|
3
|
+
import b from "./BaseDropDown.js";
|
|
4
|
+
import { debounce as x } from "@wikicasa-dev/utilities";
|
|
5
|
+
import S from "./BaseSelect/SelectItem.js";
|
|
6
6
|
import { useKeyboardController as C } from "@wikicasa-dev/vue-composables";
|
|
7
|
-
import '../
|
|
8
|
-
var w = ["innerHTML"], T = /*@__PURE__*/
|
|
7
|
+
import '../css/BaseAutocomplete.css';// lib/UIKit/BaseAutocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var w = ["innerHTML"], T = /*@__PURE__*/ o({
|
|
9
9
|
__name: "BaseAutocomplete",
|
|
10
|
-
props: /*@__PURE__*/
|
|
10
|
+
props: /*@__PURE__*/ s({
|
|
11
11
|
isValid: {
|
|
12
12
|
type: [Boolean, null],
|
|
13
13
|
default: null
|
|
@@ -45,114 +45,108 @@ var w = ["innerHTML"], T = /*@__PURE__*/ l({
|
|
|
45
45
|
} },
|
|
46
46
|
modelModifiers: {}
|
|
47
47
|
}),
|
|
48
|
-
emits: /*@__PURE__*/
|
|
48
|
+
emits: /*@__PURE__*/ s([
|
|
49
49
|
"update:dropdownState",
|
|
50
50
|
"changedValue",
|
|
51
51
|
"click",
|
|
52
52
|
"keydown",
|
|
53
53
|
"keydownEnterPressed"
|
|
54
54
|
], ["update:modelValue"]),
|
|
55
|
-
setup(
|
|
56
|
-
let E =
|
|
57
|
-
|
|
58
|
-
A.value =
|
|
55
|
+
setup(o, { expose: s, emit: T }) {
|
|
56
|
+
let E = h(o, "modelValue"), D = T, O = p(""), k = p([]), A = p(null), j = p(!1), M = p(!1), N = g("baseInput"), P = t(() => k.value.length);
|
|
57
|
+
l(() => {
|
|
58
|
+
A.value = x({ delay: 300 }, o.onInputChangeCb);
|
|
59
59
|
});
|
|
60
60
|
let { activeIdx: F, selectedIdx: I } = C({
|
|
61
61
|
optionsLength: P,
|
|
62
62
|
isDropdownOpen: M,
|
|
63
63
|
disableSpaceHandler: !0
|
|
64
|
-
}), L =
|
|
65
|
-
switch (
|
|
64
|
+
}), L = t(() => {
|
|
65
|
+
switch (o.theme) {
|
|
66
66
|
case "bordered": return "";
|
|
67
67
|
case "all-bordered": return "!uikit-rounded " + (M.value && "!uikit-rounded-b-none");
|
|
68
68
|
case "all-bordered-thick": return "!uikit-rounded-xl !uikit-h-[52px] " + (M.value && "!uikit-rounded-b-none");
|
|
69
69
|
default: return "";
|
|
70
70
|
}
|
|
71
|
-
}), R =
|
|
72
|
-
switch (
|
|
71
|
+
}), R = t(() => {
|
|
72
|
+
switch (o.theme) {
|
|
73
73
|
case "bordered": return "";
|
|
74
74
|
case "all-bordered": return "uikit-border uikit-border-w-lavender uikit-border-solid !uikit-rounded !uikit-border-w-lavender !uikit-border " + (M.value ? "!uikit-border-b-0 !uikit-rounded-b-none" : "");
|
|
75
75
|
case "all-bordered-thick": return "!uikit-rounded-xl !uikit-h-[60px] !uikit-border-w-lavender !uikit-border-none " + (M.value ? "!uikit-rounded-b-none" : "");
|
|
76
76
|
default: return "";
|
|
77
77
|
}
|
|
78
|
-
}), z =
|
|
78
|
+
}), z = t(() => {
|
|
79
79
|
let e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
80
|
-
switch (
|
|
80
|
+
switch (o.theme) {
|
|
81
81
|
case "bordered": return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
|
|
82
82
|
case "all-bordered": return e;
|
|
83
83
|
case "all-bordered-thick": return e + " !uikit-border-0";
|
|
84
84
|
default: return "";
|
|
85
85
|
}
|
|
86
86
|
}), B = async (e) => {
|
|
87
|
-
|
|
88
|
-
if (!e || j.value) {
|
|
89
|
-
k.value = [], j.value = !1, I.value = -1, F.value = -1, E.value && (E.value.label = ""), M.value = !1, await A.value?.(null);
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
l.disableCb || (k.value = await A.value?.(e) || [], M.value = !!k.value.length);
|
|
93
|
-
}
|
|
87
|
+
O.value !== e && (D("changedValue", e), O.value = e, o.onInputChangeCb && (!e || j.value ? (k.value = [], j.value = !1, I.value = -1, F.value = -1, E.value && (E.value.label = ""), M.value = !1, await A.value?.(null)) : o.disableCb || (k.value = await A.value?.(e) || [], M.value = !!k.value.length)));
|
|
94
88
|
}, V = (e, t) => {
|
|
95
|
-
|
|
89
|
+
o.onOptionSelectedCb && o.onOptionSelectedCb(e), o.cleanupOnClose && (k.value = []), j.value = !0, O.value = e.label, E.value = e, M.value = !1, I.value = t;
|
|
96
90
|
}, H = () => {
|
|
97
|
-
k.value.length &&
|
|
91
|
+
k.value.length && o.keepState !== "closed" && (M.value = !0);
|
|
98
92
|
};
|
|
99
|
-
return
|
|
93
|
+
return _(E, (e, t) => {
|
|
100
94
|
e !== t && e?.label !== O.value && (O.value = e?.label || "");
|
|
101
|
-
}, { immediate: !0 }),
|
|
95
|
+
}, { immediate: !0 }), _(I, (e) => {
|
|
102
96
|
if (e === -1 || !k.value.length) return;
|
|
103
97
|
let t = k.value[e];
|
|
104
98
|
j.value && t.label === E.value?.label || V(t, e);
|
|
105
|
-
}),
|
|
106
|
-
e === "closed" ? (M.value = !1,
|
|
107
|
-
}),
|
|
99
|
+
}), _(() => o.keepState, (e) => {
|
|
100
|
+
e === "closed" ? (M.value = !1, o.cleanupOnClose && (k.value = [])) : e === "open" && k.value.length && (M.value = !0);
|
|
101
|
+
}), _(M, (e) => {
|
|
108
102
|
D("update:dropdownState", e);
|
|
109
|
-
}),
|
|
103
|
+
}), s({ select: () => {
|
|
110
104
|
N.value?.select();
|
|
111
|
-
} }), (
|
|
112
|
-
class:
|
|
113
|
-
"data-cy":
|
|
105
|
+
} }), (t, s) => (u(), n(b, {
|
|
106
|
+
class: c(["uikit-autocomplete", t.$attrs["root-classes"]]),
|
|
107
|
+
"data-cy": o.dataCy ? o.dataCy : `ac_${t.$attrs.id}`,
|
|
114
108
|
"dropdown-element": "ul",
|
|
115
109
|
"dropdown-classes": [
|
|
116
|
-
{ "bordered-dropdown":
|
|
117
|
-
{ "all-bordered-dropdown":
|
|
118
|
-
{ "all-bordered-dropdown thick":
|
|
119
|
-
{ "uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !
|
|
110
|
+
{ "bordered-dropdown": o.theme === "bordered" },
|
|
111
|
+
{ "all-bordered-dropdown": o.theme === "all-bordered" },
|
|
112
|
+
{ "all-bordered-dropdown thick": o.theme === "all-bordered-thick" },
|
|
113
|
+
{ "uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !o.theme },
|
|
120
114
|
z.value,
|
|
121
115
|
"uikit-z-30",
|
|
122
|
-
|
|
116
|
+
o.dropdownClasses
|
|
123
117
|
],
|
|
124
118
|
open: M.value,
|
|
125
|
-
"keep-state": !k.value.length ||
|
|
126
|
-
"close-when-clicked-outside":
|
|
119
|
+
"keep-state": !k.value.length || o.keepState === "closed" ? "closed" : "opened",
|
|
120
|
+
"close-when-clicked-outside": o.closeDropdownOnBodyPressed,
|
|
127
121
|
"activate-keyboard-controller": !1,
|
|
128
|
-
"onUpdate:open":
|
|
129
|
-
onClick:
|
|
122
|
+
"onUpdate:open": s[3] ||= (e) => M.value = e,
|
|
123
|
+
onClick: s[4] ||= (e) => {
|
|
130
124
|
D("click"), H();
|
|
131
125
|
}
|
|
132
126
|
}, {
|
|
133
|
-
btn_slot:
|
|
134
|
-
id:
|
|
127
|
+
btn_slot: v(() => [a(y, {
|
|
128
|
+
id: t.$attrs.id ? `ac_input_${t.$attrs.id}` : "",
|
|
135
129
|
ref: "baseInput",
|
|
136
|
-
"data-cy":
|
|
137
|
-
"label-text":
|
|
130
|
+
"data-cy": o.dataCy ? `ac_input_${o.dataCy}` : `ac_input_${t.$attrs.id}`,
|
|
131
|
+
"label-text": o.label,
|
|
138
132
|
"model-value": O.value,
|
|
139
|
-
"is-valid":
|
|
140
|
-
disabled:
|
|
141
|
-
placeholder:
|
|
142
|
-
"with-left-icon": !!
|
|
143
|
-
"with-right-icon": !!
|
|
133
|
+
"is-valid": o.isValid,
|
|
134
|
+
disabled: t.$attrs.disabled,
|
|
135
|
+
placeholder: t.$attrs.placeholder,
|
|
136
|
+
"with-left-icon": !!t.$slots.lefticon,
|
|
137
|
+
"with-right-icon": !!t.$slots.righticon,
|
|
144
138
|
"input-class": [
|
|
145
139
|
L.value,
|
|
146
|
-
|
|
140
|
+
o.inputClasses,
|
|
147
141
|
"!uikit-ml-0 !uikit-w-full"
|
|
148
142
|
],
|
|
149
|
-
"fieldset-classes": [R.value,
|
|
150
|
-
"onUpdate:modelValue":
|
|
151
|
-
onKeydown:
|
|
152
|
-
onKeydownEnterPressed:
|
|
143
|
+
"fieldset-classes": [R.value, o.fieldsetClasses],
|
|
144
|
+
"onUpdate:modelValue": s[0] ||= (e) => B(e === void 0 ? "" : `${e}`),
|
|
145
|
+
onKeydown: s[1] ||= (e) => D("keydown", e),
|
|
146
|
+
onKeydownEnterPressed: s[2] ||= () => D("keydownEnterPressed")
|
|
153
147
|
}, {
|
|
154
|
-
leftIcon:
|
|
155
|
-
righticon:
|
|
148
|
+
leftIcon: v(() => [f(t.$slots, "lefticon")]),
|
|
149
|
+
righticon: v(({ handleClean: e }) => [f(t.$slots, "righticon", { handleClean: e })]),
|
|
156
150
|
_: 3
|
|
157
151
|
}, 8, [
|
|
158
152
|
"id",
|
|
@@ -167,17 +161,17 @@ var w = ["innerHTML"], T = /*@__PURE__*/ l({
|
|
|
167
161
|
"input-class",
|
|
168
162
|
"fieldset-classes"
|
|
169
163
|
])]),
|
|
170
|
-
default:
|
|
171
|
-
key:
|
|
172
|
-
active:
|
|
164
|
+
default: v(() => [(u(!0), r(e, null, d(k.value, (e, r) => (u(), n(S, {
|
|
165
|
+
key: r,
|
|
166
|
+
active: m(F) === r,
|
|
173
167
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
174
|
-
onClick: (
|
|
175
|
-
onMouseover: (e) => F.value =
|
|
168
|
+
onClick: (t) => V(e, r),
|
|
169
|
+
onMouseover: (e) => F.value = r
|
|
176
170
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
option:
|
|
179
|
-
idx:
|
|
180
|
-
}, () => [
|
|
171
|
+
default: v(() => [f(t.$slots, "option-content", {
|
|
172
|
+
option: e,
|
|
173
|
+
idx: r
|
|
174
|
+
}, () => [i("span", { innerHTML: e.label }, null, 8, w)])]),
|
|
181
175
|
_: 2
|
|
182
176
|
}, 1032, [
|
|
183
177
|
"active",
|
|
@@ -195,5 +189,4 @@ var w = ["innerHTML"], T = /*@__PURE__*/ l({
|
|
|
195
189
|
]));
|
|
196
190
|
}
|
|
197
191
|
});
|
|
198
|
-
//#endregion
|
|
199
192
|
export { T as default };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
badgeClass?: "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-w-primary-sm" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary" | "uikit-badge-w-danger" | "badge-black" | "badge-gray" | "badge-gold" | "badge-silver";
|
|
3
3
|
};
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const __VLS_template: () => {
|
|
5
|
+
__VLS_Slots: {
|
|
6
|
+
default?: (props: {}) => any;
|
|
7
|
+
};
|
|
7
8
|
};
|
|
9
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
8
10
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
11
|
badgeClass: "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-w-primary-sm" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary" | "uikit-badge-w-danger" | "badge-black" | "badge-gray" | "badge-gold" | "badge-silver";
|
|
10
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/UIKit/BaseBadge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
-
import '../
|
|
2
|
+
import '../css/BaseBadge.css';// lib/UIKit/BaseBadge.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var a = ["id"], o = /*@__PURE__*/ t({
|
|
4
4
|
__name: "BaseBadge",
|
|
5
5
|
props: { badgeClass: { default: "uikit-badge-w-primary-sm" } },
|
|
@@ -14,5 +14,4 @@ var a = ["id"], o = /*@__PURE__*/ t({
|
|
|
14
14
|
}, [i(o.$slots, "default")], 10, a));
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { o as default };
|
|
@@ -13,14 +13,16 @@ type __VLS_Props = {
|
|
|
13
13
|
listClasses?: ClassTypeProp;
|
|
14
14
|
listItemClasses?: ClassTypeProp;
|
|
15
15
|
};
|
|
16
|
-
declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} & {
|
|
22
|
-
|
|
16
|
+
declare const __VLS_template: () => {
|
|
17
|
+
__VLS_Slots: {
|
|
18
|
+
item?: (props: {
|
|
19
|
+
item: BreadcrumbItemsTypeWithIdx;
|
|
20
|
+
}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
separator?: (props: {}) => any;
|
|
23
|
+
};
|
|
23
24
|
};
|
|
25
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
24
26
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
28
|
declare const _default: typeof __VLS_export;
|