@wikicasa-dev/components 2.2.9-alpha.32 → 2.2.9-alpha.35
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/Swiper/autoplay.js +3 -4
- package/dist/Swiper/controller.js +1 -2
- package/dist/Swiper/free-mode.js +3 -4
- package/dist/Swiper/keyboard.js +3 -4
- package/dist/Swiper/navigation.js +3 -4
- package/dist/Swiper/pagination.js +3 -4
- package/dist/Swiper/thumbs.js +3 -4
- package/dist/UIKit/AccessibleSelect.js +2 -3
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +2 -3
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +2 -3
- package/dist/UIKit/BaseAlert.js +2 -3
- package/dist/UIKit/BaseAutocomplete.js +2 -3
- package/dist/UIKit/BaseBadge.js +2 -3
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +36 -5
- package/dist/UIKit/BaseComplexToggle.js +105 -5
- package/dist/UIKit/BaseDropDown.d.ts +4 -2
- package/dist/UIKit/BaseDropDown.js +2 -3
- package/dist/UIKit/BaseFloatingLabel.js +39 -5
- package/dist/UIKit/BaseInput.js +210 -5
- package/dist/UIKit/BaseModal.js +2 -3
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +206 -5
- package/dist/UIKit/BaseSnackbar.js +2 -3
- package/dist/UIKit/BaseTextarea.js +126 -5
- package/dist/UIKit/BaseToggle.js +41 -5
- package/dist/UIKit/BaseTooltip.js +40 -5
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -3
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +20 -5
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +81 -5
- package/dist/UIKit/StaticSpinner.js +26 -5
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/{packages/components/lib/UIKit/AccessibleSelect.vue.js → chunks/AccessibleSelect.vue_vue_type_style_index_0_lang.DWwkWpAC.js} +69 -70
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js → chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.Qp6BrYox.js} +5 -5
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js → chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.CL5zNPzY.js} +4 -4
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js → chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.BqjzG2As.js} +5 -5
- package/dist/{packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js → chunks/BaseAccordionItem.vue_vue_type_style_index_0_lang.DwEHSyBO.js} +4 -4
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.BVR-COlL.js +19 -0
- package/dist/{packages/components/lib/UIKit/BaseAutocomplete.vue.js → chunks/BaseAutocomplete.vue_vue_type_style_index_0_lang.BW_JCkOV.js} +24 -25
- package/dist/{packages/components/lib/UIKit/BaseBadge.vue.js → chunks/BaseBadge.vue_vue_type_style_index_0_lang.BnYtlFXq.js} +6 -6
- package/dist/{packages/components/lib/UIKit/BaseBreadcrumb.vue.js → chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.CcfuB26u.js} +7 -7
- package/dist/{packages/components/lib/UIKit/BaseButton.vue.js → chunks/BaseButton.vue_vue_type_script_setup_true_lang.CswNVEW_.js} +2 -2
- package/dist/{packages/components/lib/UIKit/BaseDropDown.vue.js → chunks/BaseDropDown.vue_vue_type_style_index_0_lang.z4eFD2_f.js} +39 -37
- package/dist/{packages/components/lib/UIKit/BaseModal.vue.js → chunks/BaseModal.vue_vue_type_style_index_0_lang.B8U_buif.js} +2 -2
- package/dist/{packages/components/lib/UIKit/BasePagination.vue.js → chunks/BasePagination.vue_vue_type_script_setup_true_lang.CkGMhOm-.js} +1 -1
- package/dist/{packages/components/lib/UIKit/BaseSnackbar.vue.js → chunks/BaseSnackbar.vue_vue_type_style_index_0_lang.DJqVfg6P.js} +2 -2
- package/dist/{packages/components/lib/UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabList.vue.js → chunks/BaseTabList.vue_vue_type_script_setup_true_lang.BXvkXKbT.js} +3 -3
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js → chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CM1ObHXU.js} +1 -1
- package/dist/{packages/components/lib/UIKit/Tab/BaseTabView.vue.js → chunks/BaseTabView.vue_vue_type_script_setup_true_lang.BocXkfTw.js} +17 -17
- package/dist/{packages/components/lib/UIKit/BaseUploadFile.vue.js → chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.DMPiMivr.js} +7 -7
- package/dist/{packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js → chunks/CheckboxBtn.vue_vue_type_style_index_0_lang.MYOfjOwM.js} +8 -8
- package/dist/{packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js → chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.aDZDPjgR.js} +3 -4
- package/dist/{packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js → chunks/ClearableAutocomplete.vue_vue_type_style_index_0_lang.DUOBcBPN.js} +4 -5
- package/dist/{packages/components/lib/chart/DoughnutChart.vue.js → chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.yALl_gpB.js} +6 -6
- package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js → chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BidNzYDc.js} +5 -5
- package/dist/{packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js → chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BnLNx3be.js} +3 -3
- package/dist/{packages/components/lib/chart/LineChart.vue.js → chunks/LineChart.vue_vue_type_script_setup_true_lang.Df20jEOd.js} +7 -7
- package/dist/{packages/components/lib/UIKit/Radio/RadioButton.vue.js → chunks/RadioButton.vue_vue_type_script_setup_true_lang.g-a7DM3l.js} +3 -3
- package/dist/{packages/components/lib/UIKit/Radio/RadioGroup.vue.js → chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DtBZuHm2.js} +3 -3
- package/dist/{packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js → chunks/SelectItem.vue_vue_type_script_setup_true_lang.DvQ4ZKvE.js} +9 -9
- package/dist/{packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js → chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DEb8nfZp.js} +4 -4
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +243 -6
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +82 -92
- package/package.json +2 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/assets/SwiperCarousel2.css +0 -1
- package/dist/assets/swiper-swiper.css +0 -1
- package/dist/assets/swiper-zoom.css +0 -1
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +0 -106
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +0 -40
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +0 -211
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +0 -207
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +0 -127
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +0 -42
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +0 -82
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +0 -27
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +0 -246
- /package/dist/assets/{swiper-free-mode.css → free-mode.css} +0 -0
- /package/dist/assets/{swiper-navigation.css → navigation.css} +0 -0
- /package/dist/assets/{swiper-pagination.css → pagination.css} +0 -0
- /package/dist/assets/{swiper-thumbs.css → thumbs.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.input-wrapper[data-v-
|
|
1
|
+
.input-wrapper[data-v-0f9ebca6]{--icon-default-size: 44px}.invalid-bg[data-v-0f9ebca6]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-0f9ebca6]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-0f9ebca6],.valid-bg[data-v-0f9ebca6]{background-position:top 10px right 12px;background-size:20px}.has-right-icon[data-v-0f9ebca6]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-0f9ebca6]>label.inline-label{left:var(--icon-default-size)}[data-v-0f9ebca6] .text-input-icon{position:absolute;z-index:20;box-sizing:border-box;--icon-size-sm: 16px;--icon-size-md: 20px;--icon-size-lg: 25px}[data-v-0f9ebca6] .text-input-icon.left{left:5px}[data-v-0f9ebca6] .text-input-icon.right{right:5px}[data-v-0f9ebca6] .text-input-icon{--icon-top: 5px;--icon-size: var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-0f9ebca6] .text-input-icon.md{--icon-size: var(--icon-size-md)}[data-v-0f9ebca6] .text-input-icon.lg{--icon-top: 0;--icon-size: var(--icon-size-lg)}.under-label[data-v-0f9ebca6]{left:4px;font-style:italic}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.swiper-pagination-bullet{--swiper-pagination-color: #ccc }.swiper-pagination-bullet-active{--swiper-pagination-color: #fff }
|
|
1
|
+
:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper-pagination-bullet{--swiper-pagination-color: #ccc }.swiper-pagination-bullet-active{--swiper-pagination-color: #fff }.no-transition[data-v-1ea2f6ce]{transition-duration:0ms!important}.disable-select[data-v-1ea2f6ce]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-1ea2f6ce]{pointer-events:auto!important}
|
package/dist/chart/LineChart.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, mergeModels as y, useModel as p, useId as F, useTemplateRef as
|
|
2
|
-
import { WarningIconRounded as
|
|
3
|
-
import
|
|
4
|
-
import '
|
|
5
|
-
const S = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" }, j = ["id", "innerHTML"], K = ["onClick"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "onClick"], W = ["innerHTML"], D = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, G = ["innerHTML"], J = ["id", "aria-selected", "onClick", "onMouseover"], O = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Q = ["name", "checked", "onInput"], X = ["innerHTML"], Y = ["id", "arial-live", "innerHTML"], Z = ["id", "arial-live", "innerHTML"], le = /* @__PURE__ */ B({
|
|
1
|
+
import { defineComponent as B, mergeModels as y, useModel as p, useId as F, useTemplateRef as z, computed as C, watch as I, createElementBlock as o, openBlock as l, createVNode as $, createCommentVNode as r, normalizeClass as s, withCtx as x, Fragment as g, renderList as N, withModifiers as f, createElementVNode as u, renderSlot as P, createBlock as A, unref as M } from "vue";
|
|
2
|
+
import { WarningIconRounded as E, ArrowIcon as R } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
import { _ as S } from "./BaseDropDown.vue_vue_type_style_index_0_lang.z4eFD2_f.js";
|
|
4
|
+
import '../assets/AccessibleSelect.css';const q = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" }, K = ["id", "innerHTML"], j = ["onClick"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "onClick", "onKeydown"], W = ["innerHTML"], D = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, G = ["innerHTML"], J = ["id", "aria-selected", "onClick", "onMouseover"], O = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Q = ["name", "checked", "onInput"], X = ["innerHTML"], Y = ["id", "arial-live", "innerHTML"], Z = ["id", "arial-live", "innerHTML"], te = /* @__PURE__ */ B({
|
|
6
5
|
__name: "AccessibleSelect",
|
|
7
6
|
props: /* @__PURE__ */ y({
|
|
8
7
|
label: { default: "" },
|
|
@@ -33,20 +32,20 @@ const S = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" },
|
|
|
33
32
|
}),
|
|
34
33
|
emits: /* @__PURE__ */ y(["click", "update:dropdownState"], ["update:modelValue", "update:open"]),
|
|
35
34
|
setup(e, { emit: V }) {
|
|
36
|
-
const T = V,
|
|
37
|
-
m.value = !1,
|
|
35
|
+
const T = V, k = p(e, "modelValue"), m = p(e, "open"), L = F(), H = z("dropdownRef"), t = C(() => e.namespace || L), w = C(() => !!k.value.label), h = (i) => {
|
|
36
|
+
m.value = !1, k.value = i;
|
|
38
37
|
};
|
|
39
|
-
return
|
|
38
|
+
return I(
|
|
40
39
|
() => H.value?.selectedIdx,
|
|
41
40
|
(i) => {
|
|
42
|
-
i === void 0 || i === -1 || (
|
|
41
|
+
i === void 0 || i === -1 || (h(e.options[i]), m.value = !1);
|
|
43
42
|
}
|
|
44
|
-
), (i,
|
|
45
|
-
$(
|
|
43
|
+
), (i, v) => (l(), o("div", null, [
|
|
44
|
+
$(S, {
|
|
46
45
|
ref: "dropdownRef",
|
|
47
46
|
open: m.value,
|
|
48
|
-
"onUpdate:open":
|
|
49
|
-
class:
|
|
47
|
+
"onUpdate:open": v[1] || (v[1] = (d) => m.value = d),
|
|
48
|
+
class: s([e.wrapperClasses]),
|
|
50
49
|
"activate-keyboard-controller": "",
|
|
51
50
|
"close-when-clicked-outside": e.closeOnBodyPressed,
|
|
52
51
|
direction: e.dropdownPosition === "top" ? "up" : "down",
|
|
@@ -61,71 +60,71 @@ const S = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" },
|
|
|
61
60
|
"aria-multiselectable": !1
|
|
62
61
|
}
|
|
63
62
|
}, {
|
|
64
|
-
btn_slot: x(({ toggleDropdown:
|
|
65
|
-
|
|
66
|
-
e.label ? (
|
|
63
|
+
btn_slot: x(({ toggleDropdown: d, isOpen: b, activeIdx: a, setSelectedIdx: c }) => [
|
|
64
|
+
u("div", q, [
|
|
65
|
+
e.label ? (l(), o("label", {
|
|
67
66
|
key: 0,
|
|
68
67
|
id: `${t.value}_label`,
|
|
69
|
-
class:
|
|
70
|
-
|
|
68
|
+
class: s(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
|
|
69
|
+
w.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
|
|
71
70
|
e.labelClasses,
|
|
72
|
-
{ "uikit-left-9": i.$slots.lefticon && !
|
|
73
|
-
{ "uikit-left-4": !i.$slots.lefticon && !
|
|
71
|
+
{ "uikit-left-9": i.$slots.lefticon && !w.value },
|
|
72
|
+
{ "uikit-left-4": !i.$slots.lefticon && !w.value }
|
|
74
73
|
]]),
|
|
75
74
|
innerHTML: e.label
|
|
76
|
-
}, null, 10,
|
|
77
|
-
i.$slots.lefticon ? (
|
|
75
|
+
}, null, 10, K)) : r("", !0),
|
|
76
|
+
i.$slots.lefticon ? (l(), o("span", {
|
|
78
77
|
key: 1,
|
|
79
78
|
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
80
|
-
onClick: f((
|
|
79
|
+
onClick: f((n) => d(), ["stop"])
|
|
81
80
|
}, [
|
|
82
|
-
|
|
83
|
-
], 8,
|
|
84
|
-
|
|
81
|
+
P(i.$slots, "lefticon")
|
|
82
|
+
], 8, j)) : r("", !0),
|
|
83
|
+
u("button", {
|
|
85
84
|
id: `${t.value}_btn`,
|
|
86
85
|
ref: "btnEl",
|
|
87
86
|
type: "button",
|
|
88
87
|
"data-cy": e.dataCy,
|
|
89
|
-
class:
|
|
88
|
+
class: s(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
|
|
90
89
|
"aria-required": !!i.$attrs.required,
|
|
91
90
|
role: "combobox",
|
|
92
91
|
"aria-haspopup": "listbox",
|
|
93
92
|
"aria-controls": `${t.value}_dropdown`,
|
|
94
93
|
"aria-labelledby": `${t.value}_label ${t.value}_btn`,
|
|
95
94
|
"aria-expanded": b,
|
|
96
|
-
"aria-activedescendant":
|
|
95
|
+
"aria-activedescendant": a >= 0 && b ? `${t.value}_element_${e.options[a].label}` : "",
|
|
97
96
|
"aria-invalid": e.isValid === !1,
|
|
98
97
|
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
99
|
-
onClick: (
|
|
100
|
-
|
|
98
|
+
onClick: (n) => {
|
|
99
|
+
d(), T("click", n);
|
|
101
100
|
},
|
|
102
|
-
onKeydown:
|
|
103
|
-
["Enter", "
|
|
104
|
-
}
|
|
101
|
+
onKeydown: (n) => {
|
|
102
|
+
["Enter", "Space"].includes(n.key) && (n.preventDefault(), n.stopPropagation(), c(a), d());
|
|
103
|
+
}
|
|
105
104
|
}, [
|
|
106
|
-
|
|
107
|
-
class:
|
|
108
|
-
innerHTML:
|
|
105
|
+
u("span", {
|
|
106
|
+
class: s(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
107
|
+
innerHTML: k.value?.visibleLabel || k.value?.label
|
|
109
108
|
}, null, 10, W),
|
|
110
|
-
|
|
111
|
-
e.isValid == !1 ? (
|
|
109
|
+
u("span", D, [
|
|
110
|
+
e.isValid == !1 ? (l(), A(M(E), {
|
|
112
111
|
key: 0,
|
|
113
112
|
class: "uikit-mr-1",
|
|
114
113
|
width: 20,
|
|
115
114
|
height: 20,
|
|
116
115
|
"stroke-color": "#FA4F64"
|
|
117
|
-
})) :
|
|
116
|
+
})) : r("", !0),
|
|
118
117
|
$(M(R), {
|
|
119
|
-
class:
|
|
118
|
+
class: s(["uikit-transition-transform motion-reduce:uikit-transition-none", [b ? "uikit-rotate-180" : "", e.arrowIcon?.classes]]),
|
|
120
119
|
width: e.arrowIcon?.width ?? 18,
|
|
121
120
|
height: e.arrowIcon?.height ?? 18,
|
|
122
121
|
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
123
122
|
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
124
123
|
])
|
|
125
124
|
], 42, U),
|
|
126
|
-
|
|
125
|
+
u("fieldset", {
|
|
127
126
|
"aria-hidden": "true",
|
|
128
|
-
class:
|
|
127
|
+
class: s(["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-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
129
128
|
e.fieldsetClasses,
|
|
130
129
|
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
131
130
|
{
|
|
@@ -134,68 +133,68 @@ const S = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" },
|
|
|
134
133
|
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
135
134
|
]])
|
|
136
135
|
}, [
|
|
137
|
-
|
|
138
|
-
class:
|
|
136
|
+
u("legend", {
|
|
137
|
+
class: s([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
139
138
|
}, [
|
|
140
|
-
e.label ? (
|
|
139
|
+
e.label ? (l(), o("span", {
|
|
141
140
|
key: 0,
|
|
142
|
-
class:
|
|
143
|
-
|
|
141
|
+
class: s(["uikit-mx-5px", [
|
|
142
|
+
k.value.label ? "uikit-invisible" : "uikit-hidden"
|
|
144
143
|
]]),
|
|
145
144
|
innerHTML: e.label
|
|
146
|
-
}, null, 10, G)) :
|
|
145
|
+
}, null, 10, G)) : r("", !0)
|
|
147
146
|
], 2)
|
|
148
147
|
], 2)
|
|
149
148
|
])
|
|
150
149
|
]),
|
|
151
|
-
default: x(({ activeIdx:
|
|
152
|
-
(
|
|
153
|
-
id: `${t.value}_element_${e.options[
|
|
154
|
-
key: `${
|
|
150
|
+
default: x(({ activeIdx: d, setActiveIdx: b }) => [
|
|
151
|
+
(l(!0), o(g, null, N(e.options, (a, c) => (l(), o("li", {
|
|
152
|
+
id: `${t.value}_element_${e.options[c].label}`,
|
|
153
|
+
key: `${a.label}_${c}`,
|
|
155
154
|
role: "option",
|
|
156
|
-
"aria-selected":
|
|
157
|
-
class:
|
|
158
|
-
onClick: f((
|
|
159
|
-
onMouseover: f((
|
|
160
|
-
onBlur:
|
|
155
|
+
"aria-selected": d === c,
|
|
156
|
+
class: s(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
|
|
157
|
+
onClick: f((n) => h(a), ["stop"]),
|
|
158
|
+
onMouseover: f((n) => b(c), ["stop"]),
|
|
159
|
+
onBlur: v[0] || (v[0] = f(() => {
|
|
161
160
|
}, ["stop"]))
|
|
162
161
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
u("label", O, [
|
|
163
|
+
u("input", {
|
|
165
164
|
tabindex: "-1",
|
|
166
165
|
class: "uikit-m-0 uikit-appearance-none",
|
|
167
166
|
name: `${t.value}_radio`,
|
|
168
167
|
type: "radio",
|
|
169
|
-
checked:
|
|
170
|
-
onInput: f((
|
|
168
|
+
checked: a.label === k.value.label,
|
|
169
|
+
onInput: f((n) => h(a), ["stop"])
|
|
171
170
|
}, null, 40, Q),
|
|
172
|
-
|
|
173
|
-
innerHTML:
|
|
171
|
+
u("span", {
|
|
172
|
+
innerHTML: a.label
|
|
174
173
|
}, null, 8, X)
|
|
175
174
|
])
|
|
176
175
|
], 42, J))), 128))
|
|
177
176
|
]),
|
|
178
177
|
_: 3
|
|
179
178
|
}, 8, ["open", "class", "close-when-clicked-outside", "direction", "dropdown-classes"]),
|
|
180
|
-
e.feedback ? (
|
|
181
|
-
e.feedback.valid ? (
|
|
179
|
+
e.feedback ? (l(), o(g, { key: 0 }, [
|
|
180
|
+
e.feedback.valid ? (l(), o("span", {
|
|
182
181
|
key: 0,
|
|
183
182
|
id: `${t.value}_valid_msg`,
|
|
184
183
|
"arial-live": i.$attrs["aria-live"],
|
|
185
184
|
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
186
185
|
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
187
|
-
}, null, 8, Y)) :
|
|
188
|
-
e.feedback.invalid ? (
|
|
186
|
+
}, null, 8, Y)) : r("", !0),
|
|
187
|
+
e.feedback.invalid ? (l(), o("span", {
|
|
189
188
|
key: 1,
|
|
190
189
|
id: `${t.value}_invalid_msg`,
|
|
191
190
|
"arial-live": i.$attrs["aria-live"],
|
|
192
191
|
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
193
192
|
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
194
|
-
}, null, 8, Z)) :
|
|
195
|
-
], 64)) :
|
|
193
|
+
}, null, 8, Z)) : r("", !0)
|
|
194
|
+
], 64)) : r("", !0)
|
|
196
195
|
]));
|
|
197
196
|
}
|
|
198
197
|
});
|
|
199
198
|
export {
|
|
200
|
-
|
|
199
|
+
te as _
|
|
201
200
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as i, mergeModels as
|
|
1
|
+
import { defineComponent as i, mergeModels as r, useModel as d, provide as n, createBlock as s, openBlock as u, unref as p, withCtx as m, renderSlot as c } from "vue";
|
|
2
2
|
import { AccordionRoot as f } from "reka-ui";
|
|
3
3
|
const b = /* @__PURE__ */ i({
|
|
4
4
|
__name: "BaseAccordion",
|
|
5
|
-
props: /* @__PURE__ */
|
|
5
|
+
props: /* @__PURE__ */ r({
|
|
6
6
|
collapsible: { type: Boolean },
|
|
7
7
|
type: {}
|
|
8
8
|
}, {
|
|
@@ -11,8 +11,8 @@ const b = /* @__PURE__ */ i({
|
|
|
11
11
|
}),
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(t) {
|
|
14
|
-
const e =
|
|
15
|
-
return
|
|
14
|
+
const e = d(t, "modelValue");
|
|
15
|
+
return n("isActive", (l) => typeof e.value == "string" ? e.value === l : !!e.value?.find((o) => o === l)), (l, o) => (u(), s(p(f), {
|
|
16
16
|
collapsible: t.collapsible,
|
|
17
17
|
type: t.type,
|
|
18
18
|
modelValue: e.value,
|
|
@@ -26,5 +26,5 @@ const b = /* @__PURE__ */ i({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
b as
|
|
29
|
+
b as _
|
|
30
30
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as n, renderSlot as i, createElementVNode as u, withModifiers as k, createVNode as m, unref as f } from "vue";
|
|
2
2
|
import { ArrowIcon as g } from "@wikicasa-dev/svg-icons";
|
|
3
|
-
const C = ["id"], w = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */
|
|
3
|
+
const C = ["id"], w = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "BaseAccordionBtn",
|
|
6
6
|
props: {
|
|
@@ -14,7 +14,7 @@ const C = ["id"], w = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ l(
|
|
|
14
14
|
emits: ["click"],
|
|
15
15
|
setup(t, { emit: r }) {
|
|
16
16
|
const a = r;
|
|
17
|
-
return (o, e) => (d(),
|
|
17
|
+
return (o, e) => (d(), l("div", {
|
|
18
18
|
id: `${t.id}`,
|
|
19
19
|
class: n(["uikit-flex uikit-items-center uikit-justify-around", [
|
|
20
20
|
o.$attrs["btn-wrapper-classes"],
|
|
@@ -55,5 +55,5 @@ const C = ["id"], w = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ l(
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
export {
|
|
58
|
-
b as
|
|
58
|
+
b as _
|
|
59
59
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const s = ["id", "aria-labelledby"], u = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as t, createElementBlock as a, openBlock as c, normalizeClass as o, renderSlot as n, createElementVNode as d } from "vue";
|
|
2
|
+
const s = ["id", "aria-labelledby"], u = /* @__PURE__ */ t({
|
|
3
3
|
__name: "BaseAccordionContent",
|
|
4
4
|
props: {
|
|
5
5
|
id: {},
|
|
@@ -19,16 +19,16 @@ const s = ["id", "aria-labelledby"], u = /* @__PURE__ */ n({
|
|
|
19
19
|
e.$attrs["accordion-classes"]
|
|
20
20
|
]])
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
n(e.$slots, "custom-accordion-content", { isOpen: i.accordionOpen }, () => [
|
|
23
23
|
d("div", {
|
|
24
24
|
class: o(["uikit-overflow-hidden", i.accordionContentClasses])
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
n(e.$slots, "default", { isOpen: i.accordionOpen })
|
|
27
27
|
], 2)
|
|
28
28
|
])
|
|
29
29
|
], 10, s));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
u as
|
|
33
|
+
u as _
|
|
34
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as n, inject as c, createBlock as u, openBlock as d, unref as t, withCtx as a, createVNode as s, normalizeClass as r, renderSlot as l, createTextVNode as
|
|
1
|
+
import { defineComponent as n, inject as c, createBlock as u, openBlock as d, unref as t, withCtx as a, createVNode as s, normalizeClass as r, renderSlot as l, createTextVNode as k, toDisplayString as f } from "vue";
|
|
2
2
|
import { AccordionItem as h, AccordionHeader as m, AccordionTrigger as g, AccordionContent as w } from "reka-ui";
|
|
3
3
|
import { ArrowIcon as C } from "@wikicasa-dev/svg-icons";
|
|
4
|
-
const b = /* @__PURE__ */ n({
|
|
4
|
+
import '../assets/BaseAccordionItem.css';const b = /* @__PURE__ */ n({
|
|
5
5
|
__name: "BaseAccordionItem",
|
|
6
6
|
props: {
|
|
7
7
|
title: {},
|
|
@@ -44,7 +44,7 @@ const b = /* @__PURE__ */ n({
|
|
|
44
44
|
l(i.$slots, "trigger", {
|
|
45
45
|
active: t(o)(e.value)
|
|
46
46
|
}, () => [
|
|
47
|
-
f(
|
|
47
|
+
k(f(e.title) + " ", 1),
|
|
48
48
|
s(t(C), {
|
|
49
49
|
class: r(["uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [t(o)(e.value) ? "uikit-rotate-180" : "", e.arrowClasses]]),
|
|
50
50
|
"arrow-classes": e.arrowClasses,
|
|
@@ -75,5 +75,5 @@ const b = /* @__PURE__ */ n({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
export {
|
|
78
|
-
b as
|
|
78
|
+
b as _
|
|
79
79
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as r, createElementBlock as s, openBlock as a, normalizeClass as l, renderSlot as o } from "vue";
|
|
2
|
+
import '../assets/BaseAlert.css';const n = ["id"], c = /* @__PURE__ */ r({
|
|
3
|
+
__name: "BaseAlert",
|
|
4
|
+
props: {
|
|
5
|
+
alertClass: { default: "" }
|
|
6
|
+
},
|
|
7
|
+
setup(t) {
|
|
8
|
+
return (e, i) => (a(), s("div", {
|
|
9
|
+
id: e.$attrs.id,
|
|
10
|
+
class: l(["uikit-alert", t.alertClass]),
|
|
11
|
+
role: "alert"
|
|
12
|
+
}, [
|
|
13
|
+
o(e.$slots, "default")
|
|
14
|
+
], 10, n));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
c as _
|
|
19
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent as x, mergeModels as $, useModel as F, ref as d, computed as k, onBeforeMount as L, watch as f, createBlock as g, openBlock as w, normalizeClass as H, withCtx as c, createElementBlock as K, Fragment as T, renderList as z, unref as N, renderSlot as p, createElementVNode as U, createVNode as A } from "vue";
|
|
2
|
-
import W from "
|
|
3
|
-
import j from "./BaseDropDown.
|
|
4
|
-
import '../../../../assets/BaseDropDown.css';/* empty css */
|
|
2
|
+
import W from "../UIKit/BaseInput.js";
|
|
3
|
+
import { _ as j } from "./BaseDropDown.vue_vue_type_style_index_0_lang.z4eFD2_f.js";
|
|
5
4
|
import { debounce as q } from "@wikicasa-dev/utilities";
|
|
6
|
-
import G from "./
|
|
5
|
+
import { _ as G } from "./SelectItem.vue_vue_type_script_setup_true_lang.DvQ4ZKvE.js";
|
|
7
6
|
import { useKeyboardController as J } from "@wikicasa-dev/vue-composables";
|
|
8
|
-
const Q = ["innerHTML"],
|
|
7
|
+
import '../assets/BaseAutocomplete.css';const Q = ["innerHTML"], le = /* @__PURE__ */ x({
|
|
9
8
|
__name: "BaseAutocomplete",
|
|
10
9
|
props: /* @__PURE__ */ $({
|
|
11
10
|
isValid: { type: [Boolean, null], default: null },
|
|
@@ -31,7 +30,7 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
|
|
|
31
30
|
}),
|
|
32
31
|
emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
|
|
33
32
|
setup(t, { expose: V, emit: B }) {
|
|
34
|
-
const u = F(t, "modelValue"), r = B, i = d(""),
|
|
33
|
+
const u = F(t, "modelValue"), r = B, i = d(""), o = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), S = k(() => o.value.length);
|
|
35
34
|
L(() => {
|
|
36
35
|
v.value = q({ delay: 300 }, t.onInputChangeCb);
|
|
37
36
|
});
|
|
@@ -76,15 +75,15 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
|
|
|
76
75
|
}), D = async (e) => {
|
|
77
76
|
if (i.value !== e && (r("changedValue", e), i.value = e, !!t.onInputChangeCb)) {
|
|
78
77
|
if (!e || b.value) {
|
|
79
|
-
|
|
78
|
+
o.value = [], b.value = !1, h.value = -1, m.value = -1, u.value && (u.value.label = ""), n.value = !1, await v.value(null);
|
|
80
79
|
return;
|
|
81
80
|
}
|
|
82
|
-
t.disableCb || (
|
|
81
|
+
t.disableCb || (o.value = await v.value(e), n.value = !!o.value.length);
|
|
83
82
|
}
|
|
84
83
|
}, y = (e, l) => {
|
|
85
|
-
t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (
|
|
84
|
+
t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (o.value = []), b.value = !0, i.value = e.label, u.value = e, n.value = !1, h.value = l;
|
|
86
85
|
}, E = () => {
|
|
87
|
-
|
|
86
|
+
o.value.length && t.keepState !== "closed" && (n.value = !0);
|
|
88
87
|
};
|
|
89
88
|
return f(
|
|
90
89
|
u,
|
|
@@ -93,13 +92,13 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
|
|
|
93
92
|
},
|
|
94
93
|
{ immediate: !0 }
|
|
95
94
|
), f(h, (e) => {
|
|
96
|
-
if (e === -1 || !
|
|
97
|
-
const l =
|
|
95
|
+
if (e === -1 || !o.value.length) return;
|
|
96
|
+
const l = o.value[e];
|
|
98
97
|
b.value && l.label === u.value?.label || y(l, e);
|
|
99
98
|
}), f(
|
|
100
99
|
() => t.keepState,
|
|
101
100
|
(e) => {
|
|
102
|
-
e === "closed" ? (n.value = !1, t.cleanupOnClose && (
|
|
101
|
+
e === "closed" ? (n.value = !1, t.cleanupOnClose && (o.value = [])) : e === "open" && o.value.length && (n.value = !0);
|
|
103
102
|
}
|
|
104
103
|
), f(n, (e) => {
|
|
105
104
|
r("update:dropdownState", e);
|
|
@@ -123,11 +122,11 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
|
|
|
123
122
|
t.dropdownClasses
|
|
124
123
|
],
|
|
125
124
|
"open-dropdown": n.value,
|
|
126
|
-
"keep-state": !
|
|
125
|
+
"keep-state": !o.value.length || t.keepState === "closed" ? "closed" : "opened",
|
|
127
126
|
"close-when-clicked-outside": t.closeDropdownOnBodyPressed,
|
|
128
127
|
"activate-keyboard-controller": !1,
|
|
129
|
-
"onUpdate:open": l[3] || (l[3] = (
|
|
130
|
-
onClick: l[4] || (l[4] = (
|
|
128
|
+
"onUpdate:open": l[3] || (l[3] = (a) => n.value = a),
|
|
129
|
+
onClick: l[4] || (l[4] = (a) => {
|
|
131
130
|
r("click"), E();
|
|
132
131
|
})
|
|
133
132
|
}, {
|
|
@@ -150,34 +149,34 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
|
|
|
150
149
|
"!uikit-ml-0 !uikit-w-full"
|
|
151
150
|
],
|
|
152
151
|
"fieldset-classes": [I.value, t.fieldsetClasses],
|
|
153
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
154
|
-
onKeydown: l[1] || (l[1] = (
|
|
152
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => D(a === void 0 ? "" : `${a}`)),
|
|
153
|
+
onKeydown: l[1] || (l[1] = (a) => r("keydown", a)),
|
|
155
154
|
onKeydownEnterPressed: l[2] || (l[2] = () => r("keydownEnterPressed"))
|
|
156
155
|
}, {
|
|
157
156
|
leftIcon: c(() => [
|
|
158
157
|
p(e.$slots, "lefticon")
|
|
159
158
|
]),
|
|
160
|
-
righticon: c(({ handleClean:
|
|
161
|
-
p(e.$slots, "righticon", { handleClean:
|
|
159
|
+
righticon: c(({ handleClean: a }) => [
|
|
160
|
+
p(e.$slots, "righticon", { handleClean: a })
|
|
162
161
|
]),
|
|
163
162
|
_: 3
|
|
164
163
|
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "input-class", "fieldset-classes"])
|
|
165
164
|
]),
|
|
166
165
|
default: c(() => [
|
|
167
|
-
(w(!0), K(T, null, z(
|
|
166
|
+
(w(!0), K(T, null, z(o.value, (a, s) => (w(), g(G, {
|
|
168
167
|
key: s,
|
|
169
168
|
active: N(m) === s,
|
|
170
169
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
171
|
-
onClick: (P) => y(
|
|
170
|
+
onClick: (P) => y(a, s),
|
|
172
171
|
onMouseover: (P) => m.value = s
|
|
173
172
|
}, {
|
|
174
173
|
default: c(() => [
|
|
175
174
|
p(e.$slots, "option-content", {
|
|
176
|
-
option:
|
|
175
|
+
option: a,
|
|
177
176
|
idx: s
|
|
178
177
|
}, () => [
|
|
179
178
|
U("span", {
|
|
180
|
-
innerHTML:
|
|
179
|
+
innerHTML: a.label
|
|
181
180
|
}, null, 8, Q)
|
|
182
181
|
])
|
|
183
182
|
]),
|
|
@@ -189,5 +188,5 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
|
|
|
189
188
|
}
|
|
190
189
|
});
|
|
191
190
|
export {
|
|
192
|
-
|
|
191
|
+
le as _
|
|
193
192
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as a, createElementBlock as t, openBlock as o, normalizeClass as r, renderSlot as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as a, createElementBlock as t, openBlock as o, normalizeClass as r, renderSlot as i } from "vue";
|
|
2
|
+
import '../assets/BaseBadge.css';const d = ["id"], m = /* @__PURE__ */ a({
|
|
3
3
|
__name: "BaseBadge",
|
|
4
4
|
props: {
|
|
5
5
|
badgeClass: { default: "uikit-badge-w-primary-sm" }
|
|
6
6
|
},
|
|
7
7
|
setup(s) {
|
|
8
|
-
return (e,
|
|
8
|
+
return (e, n) => (o(), t("span", {
|
|
9
9
|
id: e.$attrs.id,
|
|
10
10
|
class: r(["uikit-badge uikit-shadow-sm", s.badgeClass, e.$attrs.class])
|
|
11
11
|
}, [
|
|
12
|
-
|
|
13
|
-
], 10,
|
|
12
|
+
i(e.$slots, "default")
|
|
13
|
+
], 10, d));
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
m as
|
|
17
|
+
m as _
|
|
18
18
|
};
|