@wikicasa-dev/components 2.1.4-alpha.9 → 2.1.5-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/BaseAlert.d.ts +9 -20
- package/dist/UIKit/BaseBadge.d.ts +5 -40
- package/dist/UIKit/BaseBreadcrumb.js +2 -3
- package/dist/UIKit/BaseButton.d.ts +8 -9
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +0 -5
- package/dist/UIKit/BaseFloatingLabel.js +3 -1
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseInput.js +3 -1
- package/dist/UIKit/BasePagination.d.ts +3 -10
- package/dist/UIKit/BaseSlider.d.ts +10 -14
- package/dist/UIKit/BaseSlider.js +4 -1
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +8 -5
- package/dist/UIKit/BaseToggle.js +4 -1
- package/dist/UIKit/BaseTooltip.d.ts +20 -10
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +16 -9
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -1
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +5 -1
- package/dist/UIKit/Slider/SimpleSlider.d.ts +19 -0
- package/dist/UIKit/Slider/SimpleSlider.js +7 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -1
- package/dist/UIKit/types.d.ts +6 -11
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +2 -5
- package/dist/index.js +85 -98
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.2/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +31 -31
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +13 -107
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +32 -32
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +11 -46
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +35 -32
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +36 -56
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +46 -49
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +17 -14
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +119 -93
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +67 -70
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +135 -89
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +178 -107
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +73 -55
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +31 -27
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +33 -48
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +40 -19
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +52 -55
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +28 -21
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +19 -21
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +27 -25
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -5
- package/package.json +18 -33
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +0 -4
- package/dist/UIKit/BaseBanner.js +0 -4
- package/dist/UIKit/BaseChip.js +0 -4
- package/dist/UIKit/BaseCollapse.js +0 -7
- package/dist/UIKit/BaseNotificationBadge.js +0 -4
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BasePin.js +0 -5
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/UIKit/DatePicker.js +0 -5
- package/dist/UIKit/InputDropdown.js +0 -4
- package/dist/UIKit/Navigation/NavigationBar.d.ts +0 -17
- package/dist/UIKit/Navigation/NavigationBar.js +0 -5
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +0 -34
- package/dist/UIKit/Navigation/NavigationBarItem.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +0 -4
- package/dist/UIKit/Tab/BaseTabItem.d.ts +0 -27
- package/dist/UIKit/Tab/BaseTabItem.js +0 -4
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +0 -19
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +0 -16
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +0 -29
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +0 -33
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
- package/plugins/buttonPlugin.ts +0 -290
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12-alpha.2}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12-alpha.2}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12-alpha.2}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12-alpha.2}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.12-alpha.2}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.2}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.2}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.2}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as
|
|
1
|
+
import { defineComponent as L, mergeModels as b, useId as M, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as K, createElementBlock as N, openBlock as u, withModifiers as C, normalizeClass as i, renderSlot as g, createBlock as y, createVNode as T, unref as l, withCtx as D, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
2
|
import R from "./BaseButton.vue.js";
|
|
3
|
-
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.
|
|
6
|
-
const
|
|
3
|
+
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.2/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12-alpha.2/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.2/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
|
+
const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ b({
|
|
10
10
|
dropdownClasses: { default: "" },
|
|
11
11
|
btnClasses: { default: "" },
|
|
12
12
|
withArrowIcon: { type: Boolean, default: !1 },
|
|
@@ -21,7 +21,6 @@ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
|
21
21
|
dropdownElement: { default: "div" },
|
|
22
22
|
keepState: { default: "" },
|
|
23
23
|
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
-
disableSpaceHandler: { type: Boolean, default: !1 },
|
|
25
24
|
dataCy: { default: "" }
|
|
26
25
|
}, {
|
|
27
26
|
toggleDropdown: {
|
|
@@ -29,15 +28,14 @@ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
|
29
28
|
},
|
|
30
29
|
toggleDropdownModifiers: {}
|
|
31
30
|
}),
|
|
32
|
-
emits: /* @__PURE__ */
|
|
33
|
-
setup(
|
|
34
|
-
const o =
|
|
35
|
-
optionsLength:
|
|
31
|
+
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
32
|
+
setup(p, { emit: B }) {
|
|
33
|
+
const o = p, c = M(), f = B, k = E(p, "toggleDropdown"), t = h(!1), d = h([]), I = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
|
|
34
|
+
optionsLength: I,
|
|
36
35
|
isDropdownOpen: t,
|
|
37
|
-
activate: o.activateKeyboardController
|
|
38
|
-
disableSpaceHandler: o.disableSpaceHandler
|
|
36
|
+
activate: o.activateKeyboardController
|
|
39
37
|
});
|
|
40
|
-
|
|
38
|
+
n(
|
|
41
39
|
() => o.openDropdown,
|
|
42
40
|
(e) => {
|
|
43
41
|
t.value = e;
|
|
@@ -45,58 +43,57 @@ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
|
45
43
|
{
|
|
46
44
|
immediate: !0
|
|
47
45
|
}
|
|
48
|
-
),
|
|
49
|
-
|
|
50
|
-
}),
|
|
46
|
+
), n(t, (e) => {
|
|
47
|
+
f("update:dropdownState", e);
|
|
48
|
+
}), n(k, (e) => {
|
|
51
49
|
e && (t.value = !t.value, k.value = !1);
|
|
52
|
-
}),
|
|
53
|
-
e !== -1 &&
|
|
50
|
+
}), n(r, (e) => {
|
|
51
|
+
e !== -1 && d.value[e].querySelector("a")?.click();
|
|
54
52
|
});
|
|
55
53
|
const v = () => {
|
|
56
54
|
t.value = !1;
|
|
57
|
-
},
|
|
55
|
+
}, s = () => {
|
|
58
56
|
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
59
|
-
},
|
|
57
|
+
}, S = (e) => {
|
|
60
58
|
e != null && (m.value = e);
|
|
61
59
|
}, A = (e) => {
|
|
62
|
-
e != null && (
|
|
60
|
+
e != null && (r.value = e);
|
|
63
61
|
};
|
|
64
|
-
return
|
|
62
|
+
return $(() => {
|
|
65
63
|
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
66
|
-
}),
|
|
67
|
-
w.value && (
|
|
64
|
+
}), H(() => {
|
|
65
|
+
w.value && (d.value = w.value.children || []);
|
|
68
66
|
}), K(() => {
|
|
69
67
|
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
70
|
-
}), (e, a) => (
|
|
71
|
-
class:
|
|
72
|
-
onClick: a[1] || (a[1] = C((
|
|
73
|
-
|
|
68
|
+
}), (e, a) => (u(), N("div", {
|
|
69
|
+
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
70
|
+
onClick: a[1] || (a[1] = C((G) => {
|
|
71
|
+
f("click"), s();
|
|
74
72
|
}, ["stop"]))
|
|
75
73
|
}, [
|
|
76
74
|
g(e.$slots, "btn_slot", {
|
|
77
|
-
toggleDropdown:
|
|
78
|
-
isOpen: t.value
|
|
79
|
-
setActiveIdx: b
|
|
75
|
+
toggleDropdown: s,
|
|
76
|
+
isOpen: t.value
|
|
80
77
|
}, () => [
|
|
81
78
|
T(R, {
|
|
82
|
-
id:
|
|
79
|
+
id: l(c),
|
|
83
80
|
type: "button",
|
|
84
81
|
"data-cy": e.dataCy,
|
|
85
|
-
class:
|
|
82
|
+
class: i([
|
|
86
83
|
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
87
84
|
e.btnClasses
|
|
88
85
|
]),
|
|
89
86
|
"aria-expanded": t.value,
|
|
90
|
-
"btn-class": "single-selection"
|
|
87
|
+
"btn-class": "uikit-btn-single-selection"
|
|
91
88
|
}, {
|
|
92
|
-
default:
|
|
89
|
+
default: D(() => [
|
|
93
90
|
V("span", {
|
|
94
|
-
class:
|
|
91
|
+
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
95
92
|
innerHTML: e.btnLabel
|
|
96
|
-
}, null, 10,
|
|
97
|
-
e.withArrowIcon ? (
|
|
93
|
+
}, null, 10, F),
|
|
94
|
+
e.withArrowIcon ? (u(), y(l(U), {
|
|
98
95
|
key: 0,
|
|
99
|
-
class:
|
|
96
|
+
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
100
97
|
width: e.arrowWidth,
|
|
101
98
|
height: e.arrowWidth,
|
|
102
99
|
"stroke-color": e.arrowStrokeColor
|
|
@@ -105,11 +102,11 @@ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
|
105
102
|
_: 1
|
|
106
103
|
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
107
104
|
]),
|
|
108
|
-
(
|
|
109
|
-
id: "dropdown_" +
|
|
105
|
+
(u(), y(z(e.dropdownElement), {
|
|
106
|
+
id: "dropdown_" + l(c),
|
|
110
107
|
ref: "dropdown",
|
|
111
108
|
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
112
|
-
class:
|
|
109
|
+
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
113
110
|
e.dropdownClasses,
|
|
114
111
|
t.value ? "uikit-flex" : "uikit-hidden",
|
|
115
112
|
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
@@ -120,13 +117,13 @@ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
|
120
117
|
onClick: a[0] || (a[0] = C(() => {
|
|
121
118
|
}, ["stop"]))
|
|
122
119
|
}, {
|
|
123
|
-
default:
|
|
120
|
+
default: D(() => [
|
|
124
121
|
g(e.$slots, "default", {
|
|
125
122
|
isOpen: t.value,
|
|
126
|
-
toggleDropdown:
|
|
127
|
-
activeIdx:
|
|
128
|
-
selectedIdx:
|
|
129
|
-
setActiveIdx:
|
|
123
|
+
toggleDropdown: s,
|
|
124
|
+
activeIdx: l(m),
|
|
125
|
+
selectedIdx: l(r),
|
|
126
|
+
setActiveIdx: S,
|
|
130
127
|
setSelectedIdx: A
|
|
131
128
|
})
|
|
132
129
|
]),
|
|
@@ -136,5 +133,5 @@ const x = ["innerHTML"], Y = /* @__PURE__ */ L({
|
|
|
136
133
|
}
|
|
137
134
|
});
|
|
138
135
|
export {
|
|
139
|
-
|
|
136
|
+
Z as default
|
|
140
137
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as o, createElementBlock as
|
|
2
|
-
const k = ["for"], b = ["innerHTML"],
|
|
1
|
+
import { defineComponent as o, createElementBlock as l, openBlock as s, withModifiers as r, normalizeClass as t, createElementVNode as u, createCommentVNode as d } from "vue";
|
|
2
|
+
const k = ["for"], b = ["innerHTML"], c = /* @__PURE__ */ o({
|
|
3
3
|
__name: "BaseFloatingLabel",
|
|
4
4
|
props: {
|
|
5
5
|
labelState: { default: "inline-label" },
|
|
@@ -10,28 +10,31 @@ const k = ["for"], b = ["innerHTML"], C = /* @__PURE__ */ o({
|
|
|
10
10
|
labelTextClasses: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["click"],
|
|
13
|
-
setup(
|
|
13
|
+
setup(m, { emit: a }) {
|
|
14
14
|
const n = a;
|
|
15
|
-
return (e,
|
|
15
|
+
return (e, i) => (s(), l("label", {
|
|
16
16
|
for: e.$attrs.for,
|
|
17
|
-
class:
|
|
18
|
-
onClick:
|
|
17
|
+
class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
|
|
18
|
+
onClick: i[0] || (i[0] = r((p) => n("click"), ["stop"]))
|
|
19
19
|
}, [
|
|
20
|
-
|
|
21
|
-
class:
|
|
20
|
+
u("span", {
|
|
21
|
+
class: t(["uikit-text uikit-font-medium", [
|
|
22
|
+
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
23
|
+
e.labelTextClasses
|
|
24
|
+
]]),
|
|
22
25
|
innerHTML: e.labelText
|
|
23
26
|
}, null, 10, b),
|
|
24
|
-
e.$attrs.required ? (s(),
|
|
27
|
+
e.$attrs.required ? (s(), l("sup", {
|
|
25
28
|
key: 0,
|
|
26
|
-
class:
|
|
29
|
+
class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
|
|
27
30
|
{ "uikit-text-w-secondary": e.disabled },
|
|
28
|
-
{ "uikit-text-w-
|
|
29
|
-
{ "uikit-text-w-
|
|
31
|
+
{ "uikit-text-w-danger": e.isValid === !1 },
|
|
32
|
+
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
30
33
|
]])
|
|
31
|
-
}, " *", 2)) :
|
|
34
|
+
}, " *", 2)) : d("", !0)
|
|
32
35
|
], 10, k));
|
|
33
36
|
}
|
|
34
37
|
});
|
|
35
38
|
export {
|
|
36
|
-
|
|
39
|
+
c as default
|
|
37
40
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Z = ["innerHTML"], x = ["innerHTML"], U = {
|
|
1
|
+
import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, createElementBlock as r, openBlock as u, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, createBlock as O, createCommentVNode as w, withKeys as j, withModifiers as y, Fragment as T, renderList as M } from "vue";
|
|
2
|
+
import D from "../../../../UIKit/BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as G } from "../../../../composables/useFloatingLabel.js";
|
|
4
|
+
const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], Q = { class: "uikit-invisible uikit-float-none uikit-mb-2 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 uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, W = ["innerHTML"], X = ["innerHTML"], Y = ["innerHTML"], Z = {
|
|
6
5
|
key: 1,
|
|
7
6
|
class: "under-label uikit-absolute uikit-text-12"
|
|
8
|
-
},
|
|
7
|
+
}, ie = /* @__PURE__ */ z({
|
|
9
8
|
inheritAttrs: !1,
|
|
10
9
|
__name: "BaseInput",
|
|
11
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ C({
|
|
12
11
|
inputClass: {},
|
|
13
12
|
labelText: { default: "" },
|
|
14
13
|
feedback: {},
|
|
@@ -16,6 +15,7 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
16
15
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
17
16
|
formatter: { default: null },
|
|
18
17
|
labelClasses: {},
|
|
18
|
+
fieldsetClasses: {},
|
|
19
19
|
labelTextClasses: {},
|
|
20
20
|
withLeftIcon: { type: Boolean, default: () => {
|
|
21
21
|
} },
|
|
@@ -26,71 +26,73 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
26
26
|
modelValue: { default: "" },
|
|
27
27
|
modelModifiers: {}
|
|
28
28
|
}),
|
|
29
|
-
emits: /* @__PURE__ */
|
|
30
|
-
setup(l, { expose:
|
|
31
|
-
const
|
|
32
|
-
labelState:
|
|
33
|
-
handleFocusIn:
|
|
34
|
-
handleFocusOut:
|
|
35
|
-
setInlineLabel:
|
|
36
|
-
setFloatingLabel:
|
|
37
|
-
} =
|
|
29
|
+
emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
30
|
+
setup(l, { expose: B, emit: E }) {
|
|
31
|
+
const o = A(l, "modelValue"), a = m(""), k = E, {
|
|
32
|
+
labelState: d,
|
|
33
|
+
handleFocusIn: H,
|
|
34
|
+
handleFocusOut: $,
|
|
35
|
+
setInlineLabel: V,
|
|
36
|
+
setFloatingLabel: I
|
|
37
|
+
} = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
|
|
38
38
|
l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
|
|
39
|
-
},
|
|
39
|
+
}, L = (e, i) => {
|
|
40
40
|
if (!l.formatter || !l.formatter.formatFn)
|
|
41
|
-
return
|
|
41
|
+
return a.value = e, "";
|
|
42
42
|
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
if (
|
|
46
|
-
return
|
|
47
|
-
if (!
|
|
43
|
+
return i && (i.value = t), a.value = t, t;
|
|
44
|
+
}, F = (e, i = !0) => {
|
|
45
|
+
if (i && (!l.formatter || !l.formatter.unFormatFn))
|
|
46
|
+
return o.value = e, e;
|
|
47
|
+
if (!i || !l.formatter || !l.formatter.unFormatFn) return;
|
|
48
48
|
const t = l.formatter.unFormatFn(e);
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
const
|
|
52
|
-
|
|
49
|
+
return o.value = t ?? "", t;
|
|
50
|
+
}, P = ({ target: e }) => {
|
|
51
|
+
const i = e, t = F(i.value);
|
|
52
|
+
L(
|
|
53
53
|
`${t}`,
|
|
54
|
-
t ===
|
|
54
|
+
t === o.value ? i : void 0
|
|
55
55
|
);
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
56
|
+
}, q = () => {
|
|
57
|
+
o.value = "", V();
|
|
58
|
+
}, K = () => {
|
|
59
59
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
g(
|
|
62
62
|
() => l.feedback,
|
|
63
63
|
() => {
|
|
64
|
-
|
|
64
|
+
R();
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
immediate: !0
|
|
68
68
|
}
|
|
69
|
-
),
|
|
70
|
-
|
|
69
|
+
), g(
|
|
70
|
+
o,
|
|
71
71
|
(e) => {
|
|
72
|
-
|
|
72
|
+
L(
|
|
73
73
|
`${e}`,
|
|
74
|
-
|
|
75
|
-
),
|
|
74
|
+
F(`${e}`, !1) === e ? b.value : void 0
|
|
75
|
+
), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? I() : !a.value && document && document.activeElement !== b.value && V();
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
immediate: !0
|
|
79
79
|
}
|
|
80
|
-
),
|
|
80
|
+
), g(
|
|
81
81
|
() => l.keepFloatingLabel,
|
|
82
82
|
(e) => {
|
|
83
|
-
e ?
|
|
83
|
+
e ? I() : $(o.value);
|
|
84
84
|
}
|
|
85
|
-
)
|
|
85
|
+
);
|
|
86
|
+
const S = N();
|
|
87
|
+
return n.value = S.type || "text", B({
|
|
86
88
|
select: () => {
|
|
87
89
|
b.value?.select();
|
|
88
90
|
}
|
|
89
|
-
}), (e,
|
|
90
|
-
class:
|
|
91
|
+
}), (e, i) => (u(), r("div", {
|
|
92
|
+
class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
|
|
91
93
|
e.$attrs.class,
|
|
92
94
|
{ "floating-label": e.labelText },
|
|
93
|
-
|
|
95
|
+
s(d) === "floating-label" ? "floating-state" : "inline-state",
|
|
94
96
|
{
|
|
95
97
|
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
96
98
|
},
|
|
@@ -100,29 +102,34 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
100
102
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
101
103
|
]])
|
|
102
104
|
}, [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
handleClean:
|
|
106
|
-
handleShowPasswd:
|
|
105
|
+
p(e.$slots, "leftIcon", {}, void 0, !0),
|
|
106
|
+
p(e.$slots, "righticon", {
|
|
107
|
+
handleClean: q,
|
|
108
|
+
handleShowPasswd: K,
|
|
107
109
|
curType: n.value
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
id:
|
|
110
|
+
}, void 0, !0),
|
|
111
|
+
h("input", {
|
|
112
|
+
id: e.$attrs.id,
|
|
111
113
|
ref_key: "baseInputEl",
|
|
112
114
|
ref: b,
|
|
113
115
|
"data-cy": e.dataCy,
|
|
114
116
|
name: e.$attrs.name,
|
|
115
|
-
class:
|
|
117
|
+
class: v(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
|
|
116
118
|
{
|
|
117
|
-
"is-invalid": e.isValid === !1,
|
|
118
|
-
"is-valid": e.isValid
|
|
119
|
+
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
120
|
+
"is-valid valid-bg !uikit-pr-9": e.isValid
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
119
127
|
},
|
|
120
128
|
e.inputClass
|
|
121
129
|
]]),
|
|
122
|
-
"data-validation": e.isValid ? "valid" : e.isValid === !1 ? "invalid" : "",
|
|
123
130
|
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
124
131
|
disabled: e.$attrs.disabled,
|
|
125
|
-
"aria-labelledby":
|
|
132
|
+
"aria-labelledby": e.$attrs.id,
|
|
126
133
|
readonly: e.$attrs.readonly,
|
|
127
134
|
type: n.value,
|
|
128
135
|
pattern: e.$attrs.pattern,
|
|
@@ -131,55 +138,74 @@ const Y = ["id", "data-cy", "name", "data-validation", "autocomplete", "disabled
|
|
|
131
138
|
maxlength: e.$attrs.maxlength,
|
|
132
139
|
inputmode: e.$attrs.inputmode,
|
|
133
140
|
placeholder: e.$attrs.placeholder,
|
|
134
|
-
value:
|
|
135
|
-
onClick:
|
|
136
|
-
onFocusin:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
["stop"]
|
|
141
|
-
)),
|
|
142
|
-
onFocusout: a[2] || (a[2] = g(
|
|
143
|
-
(t) => {
|
|
144
|
-
d("focusout", t), e.labelText && !e.keepFloatingLabel && k(w)(i.value);
|
|
145
|
-
},
|
|
146
|
-
["stop"]
|
|
147
|
-
)),
|
|
148
|
-
onInput: g(R, ["stop"]),
|
|
141
|
+
value: a.value,
|
|
142
|
+
onClick: i[0] || (i[0] = (t) => k("click", t)),
|
|
143
|
+
onFocusin: i[1] || (i[1] = y(() => e.labelText && s(H)(), ["stop"])),
|
|
144
|
+
onFocusout: i[2] || (i[2] = y((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
|
|
145
|
+
onInput: y(P, ["stop"]),
|
|
149
146
|
onKeydown: [
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
|
|
148
|
+
i[4] || (i[4] = (t) => k("keydown", t))
|
|
152
149
|
],
|
|
153
|
-
onKeyup:
|
|
154
|
-
}, null, 42,
|
|
155
|
-
|
|
150
|
+
onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
|
|
151
|
+
}, null, 42, J),
|
|
152
|
+
h("fieldset", {
|
|
153
|
+
class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
|
|
154
|
+
{
|
|
155
|
+
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
156
|
+
"is-valid uikit-border-w-primary": e.isValid,
|
|
157
|
+
"uikit-border-w-secondary": e.isValid === null
|
|
158
|
+
},
|
|
159
|
+
{ "uikit-top-0": !e.labelText },
|
|
160
|
+
e.fieldsetClasses
|
|
161
|
+
]])
|
|
162
|
+
}, [
|
|
163
|
+
h("legend", Q, [
|
|
164
|
+
h("span", {
|
|
165
|
+
class: v(["visible-label uikit-opacity-0", [
|
|
166
|
+
{ "uikit-mx-5px": e.labelText },
|
|
167
|
+
{
|
|
168
|
+
"uikit-visible uikit-inline-block": s(d) === "floating-label"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"uikit-invisible uikit-hidden": s(d) === "inline-label"
|
|
172
|
+
}
|
|
173
|
+
]]),
|
|
174
|
+
innerHTML: e.labelText
|
|
175
|
+
}, null, 10, W)
|
|
176
|
+
])
|
|
177
|
+
], 2),
|
|
178
|
+
e.labelText ? (u(), O(D, {
|
|
156
179
|
key: 0,
|
|
157
|
-
for:
|
|
180
|
+
for: e.$attrs.id,
|
|
158
181
|
"label-text": e.labelText,
|
|
159
|
-
"label-state":
|
|
182
|
+
"label-state": s(d),
|
|
160
183
|
"is-valid": e.isValid,
|
|
161
184
|
required: e.$attrs.required,
|
|
162
185
|
disabled: e.$attrs.disabled,
|
|
163
|
-
"label-classes": [
|
|
186
|
+
"label-classes": [
|
|
187
|
+
s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
188
|
+
e.labelClasses
|
|
189
|
+
],
|
|
164
190
|
"label-text-classes": e.labelTextClasses
|
|
165
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) :
|
|
166
|
-
|
|
167
|
-
e.isValid === !1 ? (
|
|
168
|
-
key: `${
|
|
169
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-
|
|
191
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : w("", !0),
|
|
192
|
+
p(e.$slots, "feedback", {}, () => [
|
|
193
|
+
e.isValid === !1 ? (u(!0), r(T, { key: 0 }, M(f.value.invalid, (t, c) => (u(), r("div", {
|
|
194
|
+
key: `${e.$attrs.id}_invalid_${c}`,
|
|
195
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
170
196
|
innerHTML: t
|
|
171
|
-
}, null, 8,
|
|
172
|
-
key: `${
|
|
173
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-
|
|
197
|
+
}, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, M(f.value.valid, (t, c) => (u(), r("div", {
|
|
198
|
+
key: `${e.$attrs.id}_valid_${c}`,
|
|
199
|
+
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
174
200
|
innerHTML: t
|
|
175
|
-
}, null, 8,
|
|
176
|
-
]),
|
|
177
|
-
e.$slots["under-label"] ? (
|
|
178
|
-
|
|
179
|
-
])) :
|
|
201
|
+
}, null, 8, Y))), 128)) : w("", !0)
|
|
202
|
+
], !0),
|
|
203
|
+
e.$slots["under-label"] ? (u(), r("div", Z, [
|
|
204
|
+
p(e.$slots, "under-label", {}, void 0, !0)
|
|
205
|
+
])) : w("", !0)
|
|
180
206
|
], 2));
|
|
181
207
|
}
|
|
182
208
|
});
|
|
183
209
|
export {
|
|
184
|
-
|
|
210
|
+
ie as default
|
|
185
211
|
};
|