@wikicasa-dev/components 2.1.22 → 2.1.24-alpha.0
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 -1
- 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 +1 -1
- package/dist/UIKit/BaseAlert.js +2 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +2 -2
- package/dist/UIKit/BaseSnackbar.d.ts +39 -20
- package/dist/UIKit/BaseSnackbar.js +3 -5
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/BaseToggle.js +2 -2
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
- 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 +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +2 -2
- package/dist/UIKit/StaticSpinner.js +2 -2
- 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/_virtual/polyline.js +1 -1
- package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +1 -1
- package/dist/assets/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/lib/UIKit/BaseModal.css +1 -0
- package/dist/assets/lib/UIKit/BaseSnackbar.css +1 -0
- package/dist/assets/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/node_modules/swiper/modules/keyboard.css +0 -0
- package/dist/assets/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/src/tailwind.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.d.ts +11 -4
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.js +89 -88
- package/dist/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/lazyModules/Swiper/controller.js +5 -0
- package/dist/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/lazyModules/Swiper/navigation.js +5 -0
- package/dist/lazyModules/Swiper/pagination.js +5 -0
- package/dist/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/lib/UIKit/AccessibleSelect.vue.js +211 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordion.vue.js +3 -3
- package/dist/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +10 -10
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +54 -54
- package/dist/lib/UIKit/BaseAlert.vue.js +19 -0
- package/dist/lib/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/lib/UIKit/BaseBreadcrumb.vue.js +58 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +18 -18
- package/dist/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +29 -29
- package/dist/lib/UIKit/BaseDropDown.vue.js +135 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +14 -14
- package/dist/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +86 -86
- package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +61 -61
- package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +93 -95
- package/dist/lib/UIKit/BaseSelect/SelectItem.vue.js +41 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +45 -45
- package/dist/lib/UIKit/BaseSnackbar.vue.js +119 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +57 -57
- package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +15 -15
- package/dist/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/lib/UIKit/BaseUploadFile.vue.js +71 -0
- package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +26 -26
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.vue.js +112 -0
- package/dist/lib/UIKit/Radio/RadioButton.vue.js +58 -0
- package/dist/lib/UIKit/Radio/RadioGroup.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -8
- package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +3 -3
- package/dist/lib/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/lib/UIKit/Tab/BaseTabPanel.vue.js +25 -0
- package/dist/lib/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/lib/chart/LineChart.vue.js +42 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +26 -27
- package/dist/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -1
- package/dist/node_modules/swiper/modules/autoplay.js +128 -0
- package/dist/node_modules/swiper/modules/controller.js +100 -0
- package/dist/node_modules/swiper/modules/free-mode.js +123 -0
- package/dist/node_modules/swiper/modules/keyboard.js +66 -0
- package/dist/node_modules/swiper/modules/navigation.js +136 -0
- package/dist/node_modules/swiper/modules/pagination.js +226 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/thumbs.js +33 -34
- package/dist/node_modules/swiper/modules/zoom.js +309 -0
- package/dist/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/ssr-window.esm.js +9 -10
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/utils.js +42 -39
- package/package.json +34 -30
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/assets/packages/components/src/tailwind.css +0 -1
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -41
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +0 -60
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -192
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -137
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +0 -71
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +0 -62
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +0 -45
- package/dist/packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js +0 -25
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +0 -107
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
- package/dist/packages/components/lib/chart/LineChart.vue.js +0 -42
- package/dist/packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/zoom.css +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
- /package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as T, mergeModels as C, useModel as x, computed as d, createElementBlock as g, openBlock as c, normalizeClass as o, createElementVNode as i, withModifiers as f, renderSlot as m, createCommentVNode as k } from "vue";
|
|
2
|
+
const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "alt"], M = ["innerHTML"], z = ["data-btn-bg-color", "data-cy"], B = ["src", "alt"], V = ["innerHTML"], j = /* @__PURE__ */ T({
|
|
3
3
|
__name: "BaseComplexToggle",
|
|
4
|
-
props: /* @__PURE__ */
|
|
4
|
+
props: /* @__PURE__ */ C({
|
|
5
5
|
labels: {},
|
|
6
6
|
type: { default: "full" },
|
|
7
7
|
mode: { default: "" },
|
|
@@ -16,41 +16,41 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
setup(e) {
|
|
20
|
+
const t = e, s = x(e, "modelValue"), n = () => {
|
|
21
|
+
s.value = t.labels.leftToggle;
|
|
22
22
|
}, u = () => {
|
|
23
|
-
|
|
23
|
+
s.value = t.labels.rightToggle;
|
|
24
24
|
};
|
|
25
25
|
(() => {
|
|
26
|
-
if (
|
|
27
|
-
|
|
26
|
+
if (t.labels.leftToggle.checked) {
|
|
27
|
+
n();
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
30
|
+
if (t.labels.rightToggle.checked) {
|
|
31
31
|
u();
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
n();
|
|
35
35
|
})();
|
|
36
|
-
const
|
|
37
|
-
return (
|
|
38
|
-
id:
|
|
39
|
-
"data-cy":
|
|
36
|
+
const r = (l) => s.value?.label === l.label, b = d(() => r(t.labels.leftToggle)), h = d(() => r(t.labels.rightToggle));
|
|
37
|
+
return (l, a) => (c(), g("div", {
|
|
38
|
+
id: l.$attrs.id || "",
|
|
39
|
+
"data-cy": l.$attrs["data-cy"] || "",
|
|
40
40
|
class: o(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor, e.size]])
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
i("div", {
|
|
43
43
|
"data-btn-bg-color": e.btnBgColor,
|
|
44
44
|
"data-cy": `bct-left-btn${e.labels.leftToggle.label ? `-${e.labels.leftToggle.label}` : ""}`,
|
|
45
45
|
class: o(["left-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
|
|
46
46
|
{
|
|
47
|
-
"base-complex-toggle-active":
|
|
47
|
+
"base-complex-toggle-active": b.value
|
|
48
48
|
}
|
|
49
49
|
]]),
|
|
50
|
-
onClick:
|
|
50
|
+
onClick: a[0] || (a[0] = f((v) => n(), ["stop"]))
|
|
51
51
|
}, [
|
|
52
|
-
m(
|
|
53
|
-
e.labels.leftToggle.icon ? (
|
|
52
|
+
m(l.$slots, "left_icon", {}, () => [
|
|
53
|
+
e.labels.leftToggle.icon ? (c(), g("img", {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
|
|
56
56
|
src: e.labels.leftToggle.icon.src,
|
|
@@ -59,23 +59,23 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
59
59
|
height: "15"
|
|
60
60
|
}, null, 8, L)) : k("", !0)
|
|
61
61
|
], !0),
|
|
62
|
-
|
|
62
|
+
i("span", {
|
|
63
63
|
class: "base-complex-toggle-label uikit-relative uikit-z-10",
|
|
64
64
|
innerHTML: e.labels.leftToggle.label
|
|
65
65
|
}, null, 8, M)
|
|
66
66
|
], 10, $),
|
|
67
|
-
|
|
67
|
+
i("div", {
|
|
68
68
|
"data-btn-bg-color": e.btnBgColor,
|
|
69
69
|
"data-cy": `bct-right-btn${e.labels.rightToggle.label ? `-${e.labels.rightToggle.label}` : ""}`,
|
|
70
70
|
class: o(["right-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
|
|
71
71
|
{
|
|
72
|
-
"base-complex-toggle-active":
|
|
72
|
+
"base-complex-toggle-active": h.value
|
|
73
73
|
}
|
|
74
74
|
]]),
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: a[1] || (a[1] = f((v) => u(), ["stop"]))
|
|
76
76
|
}, [
|
|
77
|
-
m(
|
|
78
|
-
e.labels.rightToggle.icon ? (
|
|
77
|
+
m(l.$slots, "right_icon", {}, () => [
|
|
78
|
+
e.labels.rightToggle.icon ? (c(), g("img", {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
|
|
81
81
|
src: e.labels.rightToggle.icon.src,
|
|
@@ -84,17 +84,17 @@ const y = ["id", "data-cy"], $ = ["data-btn-bg-color", "data-cy"], L = ["src", "
|
|
|
84
84
|
height: "15"
|
|
85
85
|
}, null, 8, B)) : k("", !0)
|
|
86
86
|
], !0),
|
|
87
|
-
|
|
87
|
+
i("span", {
|
|
88
88
|
class: "base-complex-toggle-label uikit-relative uikit-z-10",
|
|
89
89
|
innerHTML: e.labels.rightToggle.label
|
|
90
90
|
}, null, 8, V)
|
|
91
91
|
], 10, z),
|
|
92
|
-
|
|
92
|
+
i("div", {
|
|
93
93
|
class: o(["uikit-absolute uikit-transition-all uikit-duration-200 uikit-ease-out", [
|
|
94
94
|
e.type === "full" ? "base-complex-toggle-active-bg" : "base-complex-toggle-active-padded-bg",
|
|
95
95
|
e.btnBgColor,
|
|
96
96
|
e.mode,
|
|
97
|
-
|
|
97
|
+
b.value ? "translateX-left" : "translateX-right",
|
|
98
98
|
e.btnClasses
|
|
99
99
|
]])
|
|
100
100
|
}, null, 2)
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as A, mergeModels as b, useId as L, useModel as M, ref as h, computed as E, useTemplateRef as O, watch as d, onBeforeMount as W, onMounted as $, onUnmounted as H, createElementBlock as K, openBlock as c, withModifiers as y, normalizeClass as l, renderSlot as C, createBlock as g, createVNode as N, unref as a, withCtx as D, createElementVNode as T, createCommentVNode as V, resolveDynamicComponent as q } from "vue";
|
|
2
|
+
import z from "./BaseButton.vue.js";
|
|
3
|
+
import { ArrowIcon as R } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as U } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
|
+
const j = ["innerHTML"], Y = /* @__PURE__ */ A({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "BaseDropDown",
|
|
9
|
+
props: /* @__PURE__ */ b({
|
|
10
|
+
dropdownClasses: { default: "" },
|
|
11
|
+
btnClasses: { default: "" },
|
|
12
|
+
withArrowIcon: { type: Boolean, default: !1 },
|
|
13
|
+
btnLabel: { default: "" },
|
|
14
|
+
labelClasses: { default: "" },
|
|
15
|
+
direction: { default: "down" },
|
|
16
|
+
arrowWidth: { default: 12 },
|
|
17
|
+
arrowStrokeColor: { default: void 0 },
|
|
18
|
+
isAbsolute: { type: Boolean, default: !0 },
|
|
19
|
+
openDropdown: { type: Boolean, default: !1 },
|
|
20
|
+
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
21
|
+
dropdownElement: { default: "div" },
|
|
22
|
+
keepState: { default: "" },
|
|
23
|
+
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
+
dataCy: { default: "" }
|
|
25
|
+
}, {
|
|
26
|
+
toggleDropdown: { type: Boolean, default: void 0 },
|
|
27
|
+
toggleDropdownModifiers: {}
|
|
28
|
+
}),
|
|
29
|
+
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
30
|
+
setup(t, { emit: x }) {
|
|
31
|
+
const i = t, f = L(), k = x, w = M(t, "toggleDropdown"), o = h(!1), r = h([]), B = E(() => r.value.length), m = O("dropdown"), { activeIdx: v, selectedIdx: u } = U({
|
|
32
|
+
optionsLength: B,
|
|
33
|
+
isDropdownOpen: o,
|
|
34
|
+
activate: i.activateKeyboardController
|
|
35
|
+
});
|
|
36
|
+
d(
|
|
37
|
+
() => i.openDropdown,
|
|
38
|
+
(e) => {
|
|
39
|
+
o.value = e;
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
immediate: !0
|
|
43
|
+
}
|
|
44
|
+
), d(o, (e) => {
|
|
45
|
+
k("update:dropdownState", e);
|
|
46
|
+
}), d(w, (e) => {
|
|
47
|
+
e && (o.value = !o.value, w.value = !1);
|
|
48
|
+
}), d(u, (e) => {
|
|
49
|
+
e !== -1 && r.value[e].querySelector("a")?.click();
|
|
50
|
+
});
|
|
51
|
+
const p = () => {
|
|
52
|
+
o.value = !1;
|
|
53
|
+
}, s = () => {
|
|
54
|
+
i.keepState === "closed" && !o.value || i.keepState === "opened" && o.value || (o.value = !o.value);
|
|
55
|
+
}, I = (e) => {
|
|
56
|
+
e != null && (v.value = e);
|
|
57
|
+
}, S = (e) => {
|
|
58
|
+
e != null && (u.value = e);
|
|
59
|
+
};
|
|
60
|
+
return W(() => {
|
|
61
|
+
i.closeWhenClickedOutside && document.body.addEventListener("click", p);
|
|
62
|
+
}), $(() => {
|
|
63
|
+
m.value && (r.value = m.value.children || []);
|
|
64
|
+
}), H(() => {
|
|
65
|
+
i.closeWhenClickedOutside && document.body.removeEventListener("click", p);
|
|
66
|
+
}), (e, n) => (c(), K("div", {
|
|
67
|
+
class: l(["uikit-relative uikit-block", e.$attrs.class]),
|
|
68
|
+
onClick: n[1] || (n[1] = y((F) => {
|
|
69
|
+
k("click"), s();
|
|
70
|
+
}, ["stop"]))
|
|
71
|
+
}, [
|
|
72
|
+
C(e.$slots, "btn_slot", {
|
|
73
|
+
toggleDropdown: s,
|
|
74
|
+
isOpen: o.value
|
|
75
|
+
}, () => [
|
|
76
|
+
N(z, {
|
|
77
|
+
id: a(f),
|
|
78
|
+
type: "button",
|
|
79
|
+
"data-cy": t.dataCy,
|
|
80
|
+
class: l([
|
|
81
|
+
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
82
|
+
t.btnClasses
|
|
83
|
+
]),
|
|
84
|
+
"aria-expanded": o.value,
|
|
85
|
+
"btn-class": "uikit-btn-single-selection"
|
|
86
|
+
}, {
|
|
87
|
+
default: D(() => [
|
|
88
|
+
T("span", {
|
|
89
|
+
class: l(["uikit-mr-5px", t.labelClasses]),
|
|
90
|
+
innerHTML: t.btnLabel
|
|
91
|
+
}, null, 10, j),
|
|
92
|
+
t.withArrowIcon ? (c(), g(a(R), {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: l(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", o.value ? "uikit-rotate-180" : ""]),
|
|
95
|
+
width: t.arrowWidth,
|
|
96
|
+
height: t.arrowWidth,
|
|
97
|
+
"stroke-color": t.arrowStrokeColor
|
|
98
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : V("", !0)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
102
|
+
]),
|
|
103
|
+
(c(), g(q(t.dropdownElement), {
|
|
104
|
+
id: "dropdown_" + a(f),
|
|
105
|
+
ref: "dropdown",
|
|
106
|
+
"data-cy": t.dataCy && `${t.dataCy}_dropdown`,
|
|
107
|
+
class: l(["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", [
|
|
108
|
+
t.dropdownClasses,
|
|
109
|
+
o.value ? "uikit-flex" : "uikit-hidden",
|
|
110
|
+
{ "uikit-bottom-[55px] uikit-rounded-xs": t.direction === "up" },
|
|
111
|
+
{ "uikit-rounded-b uikit-border-t-0": t.direction === "down" },
|
|
112
|
+
{ "uikit-absolute": t.isAbsolute }
|
|
113
|
+
]]),
|
|
114
|
+
"aria-hidden": !o.value,
|
|
115
|
+
onClick: n[0] || (n[0] = y(() => {
|
|
116
|
+
}, ["stop"]))
|
|
117
|
+
}, {
|
|
118
|
+
default: D(() => [
|
|
119
|
+
C(e.$slots, "default", {
|
|
120
|
+
isOpen: o.value,
|
|
121
|
+
toggleDropdown: s,
|
|
122
|
+
activeIdx: a(v),
|
|
123
|
+
selectedIdx: a(u),
|
|
124
|
+
setActiveIdx: I,
|
|
125
|
+
setSelectedIdx: S
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
_: 3
|
|
129
|
+
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
130
|
+
], 2));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
Y as default
|
|
135
|
+
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as d, createElementBlock as a, openBlock as s, withModifiers as o, normalizeClass as t, createElementVNode as k, createCommentVNode as r } from "vue";
|
|
2
|
+
const b = ["for"], c = ["innerHTML"], x = /* @__PURE__ */ d({
|
|
3
3
|
__name: "BaseFloatingLabel",
|
|
4
4
|
props: {
|
|
5
5
|
labelState: { default: "inline-label" },
|
|
6
|
-
isValid: { default: null },
|
|
6
|
+
isValid: { type: [Boolean, null], default: null },
|
|
7
7
|
labelText: {},
|
|
8
8
|
disabled: { type: [String, Boolean], default: !1 },
|
|
9
9
|
labelClasses: {},
|
|
10
10
|
labelTextClasses: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["click"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
return (
|
|
16
|
-
for:
|
|
13
|
+
setup(e, { emit: n }) {
|
|
14
|
+
const u = n;
|
|
15
|
+
return (i, l) => (s(), a("label", {
|
|
16
|
+
for: i.$attrs.for,
|
|
17
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:
|
|
18
|
+
onClick: l[0] || (l[0] = o((m) => u("click"), ["stop"]))
|
|
19
19
|
}, [
|
|
20
|
-
|
|
20
|
+
k("span", {
|
|
21
21
|
class: t(["uikit-text uikit-font-medium", [
|
|
22
22
|
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
23
23
|
e.labelTextClasses
|
|
24
24
|
]]),
|
|
25
25
|
innerHTML: e.labelText
|
|
26
|
-
}, null, 10,
|
|
27
|
-
|
|
26
|
+
}, null, 10, c),
|
|
27
|
+
i.$attrs.required ? (s(), a("sup", {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
|
|
30
30
|
{ "uikit-text-w-secondary": e.disabled },
|
|
31
31
|
{ "uikit-text-w-danger": e.isValid === !1 },
|
|
32
32
|
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
33
33
|
]])
|
|
34
|
-
}, " *", 2)) :
|
|
35
|
-
], 10,
|
|
34
|
+
}, " *", 2)) : r("", !0)
|
|
35
|
+
], 10, b));
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
x as default
|
|
40
40
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as i, createElementBlock as a, openBlock as l, normalizeStyle as n, normalizeClass as o } from "vue";
|
|
2
|
+
const s = ["id", "alt", "src", "width", "height", "loading"], c = /* @__PURE__ */ i({
|
|
3
|
+
__name: "BaseIcon",
|
|
4
|
+
props: {
|
|
5
|
+
lazyLoading: { type: Boolean },
|
|
6
|
+
altAttribute: {},
|
|
7
|
+
iconType: { default: "icon-md" },
|
|
8
|
+
iconClass: { default: "uikit-mr-5px" },
|
|
9
|
+
width: {},
|
|
10
|
+
height: {}
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
return (e, r) => (l(), a("img", {
|
|
14
|
+
id: e.$attrs.id,
|
|
15
|
+
class: o(["uikit-inline-block", t.iconType, t.iconClass]),
|
|
16
|
+
alt: t.altAttribute || e.$attrs.alt,
|
|
17
|
+
style: n(e.$attrs.style),
|
|
18
|
+
src: e.$attrs.src ? e.$attrs.src : "",
|
|
19
|
+
width: t.width,
|
|
20
|
+
height: t.height,
|
|
21
|
+
loading: t.lazyLoading ? "lazy" : "eager"
|
|
22
|
+
}, null, 14, s));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
c as default
|
|
27
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as
|
|
2
|
-
import D from "
|
|
3
|
-
import { useFloatingLabel as G } from "
|
|
1
|
+
import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as w, useAttrs as N, createElementBlock as r, openBlock as u, normalizeClass as v, unref as s, renderSlot as c, createElementVNode as h, createBlock as O, createCommentVNode as y, withKeys as j, withModifiers as $, Fragment as T, renderList as B } from "vue";
|
|
2
|
+
import D from "../../UIKit/BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as G } from "../../composables/useFloatingLabel.js";
|
|
4
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 = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "under-label uikit-absolute uikit-text-12"
|
|
7
|
-
},
|
|
7
|
+
}, te = /* @__PURE__ */ z({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "BaseInput",
|
|
10
10
|
props: /* @__PURE__ */ C({
|
|
11
11
|
inputClass: {},
|
|
12
12
|
labelText: { default: "" },
|
|
13
13
|
feedback: {},
|
|
14
|
-
isValid: { default: null },
|
|
14
|
+
isValid: { type: [Boolean, null], default: null },
|
|
15
15
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
16
16
|
formatter: { default: null },
|
|
17
17
|
labelClasses: {},
|
|
@@ -27,127 +27,127 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
27
27
|
modelModifiers: {}
|
|
28
28
|
}),
|
|
29
29
|
emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
labelState:
|
|
30
|
+
setup(e, { expose: M, emit: E }) {
|
|
31
|
+
const d = A(e, "modelValue"), a = m(""), k = E, {
|
|
32
|
+
labelState: o,
|
|
33
33
|
handleFocusIn: H,
|
|
34
|
-
handleFocusOut:
|
|
34
|
+
handleFocusOut: x,
|
|
35
35
|
setInlineLabel: V,
|
|
36
36
|
setFloatingLabel: I
|
|
37
37
|
} = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
|
|
38
|
-
|
|
39
|
-
}, L = (
|
|
40
|
-
if (!
|
|
41
|
-
return a.value =
|
|
42
|
-
const
|
|
43
|
-
return i && (i.value =
|
|
44
|
-
}, F = (
|
|
45
|
-
if (i && (!
|
|
46
|
-
return
|
|
47
|
-
if (!i || !
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
}, P = ({ target:
|
|
51
|
-
const i =
|
|
38
|
+
e.feedback && (f.value = e.feedback, e.feedback.valid && typeof e.feedback.valid == "string" && (f.value.valid = [e.feedback.valid]), e.feedback.invalid && typeof e.feedback.invalid == "string" && (f.value.invalid = [e.feedback.invalid]));
|
|
39
|
+
}, L = (t, i) => {
|
|
40
|
+
if (!e.formatter || !e.formatter.formatFn)
|
|
41
|
+
return a.value = t, "";
|
|
42
|
+
const l = t.length ? e.formatter.formatFn(t) : t;
|
|
43
|
+
return i && (i.value = l), a.value = l, l;
|
|
44
|
+
}, F = (t, i = !0) => {
|
|
45
|
+
if (i && (!e.formatter || !e.formatter.unFormatFn))
|
|
46
|
+
return d.value = t, t;
|
|
47
|
+
if (!i || !e.formatter || !e.formatter.unFormatFn) return;
|
|
48
|
+
const l = e.formatter.unFormatFn(t);
|
|
49
|
+
return d.value = l ?? "", l;
|
|
50
|
+
}, P = ({ target: t }) => {
|
|
51
|
+
const i = t, l = F(i.value);
|
|
52
52
|
L(
|
|
53
|
-
`${
|
|
54
|
-
|
|
53
|
+
`${l}`,
|
|
54
|
+
l === d.value ? i : void 0
|
|
55
55
|
);
|
|
56
56
|
}, q = () => {
|
|
57
|
-
|
|
57
|
+
d.value = "", V();
|
|
58
58
|
}, K = () => {
|
|
59
59
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
() =>
|
|
61
|
+
w(
|
|
62
|
+
() => e.feedback,
|
|
63
63
|
() => {
|
|
64
64
|
R();
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
immediate: !0
|
|
68
68
|
}
|
|
69
|
-
),
|
|
70
|
-
|
|
71
|
-
(
|
|
69
|
+
), w(
|
|
70
|
+
d,
|
|
71
|
+
(t) => {
|
|
72
72
|
L(
|
|
73
|
-
`${
|
|
74
|
-
F(`${
|
|
75
|
-
), a.value != null && a.value.length > 0 &&
|
|
73
|
+
`${t}`,
|
|
74
|
+
F(`${t}`, !1) === t ? b.value : void 0
|
|
75
|
+
), a.value != null && a.value.length > 0 && o.value !== "floating-label" ? I() : !a.value && document && document.activeElement !== b.value && V();
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
immediate: !0
|
|
79
79
|
}
|
|
80
|
-
),
|
|
81
|
-
() =>
|
|
82
|
-
(
|
|
83
|
-
|
|
80
|
+
), w(
|
|
81
|
+
() => e.keepFloatingLabel,
|
|
82
|
+
(t) => {
|
|
83
|
+
t ? I() : x(d.value);
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
const S = N();
|
|
87
|
-
return n.value = S.type || "text",
|
|
87
|
+
return n.value = S.type || "text", M({
|
|
88
88
|
select: () => {
|
|
89
89
|
b.value?.select();
|
|
90
90
|
}
|
|
91
|
-
}), (
|
|
91
|
+
}), (t, i) => (u(), r("div", {
|
|
92
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", [
|
|
93
|
-
|
|
93
|
+
t.$attrs.class,
|
|
94
94
|
{ "floating-label": e.labelText },
|
|
95
|
-
s(
|
|
95
|
+
s(o) === "floating-label" ? "floating-state" : "inline-state",
|
|
96
96
|
{
|
|
97
|
-
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!
|
|
97
|
+
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!t.$slots.righticon
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!
|
|
100
|
+
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!t.$slots.leftIcon
|
|
101
101
|
},
|
|
102
102
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
103
103
|
]])
|
|
104
104
|
}, [
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
c(t.$slots, "leftIcon", {}, void 0, !0),
|
|
106
|
+
c(t.$slots, "righticon", {
|
|
107
107
|
handleClean: q,
|
|
108
108
|
handleShowPasswd: K,
|
|
109
109
|
curType: n.value
|
|
110
110
|
}, void 0, !0),
|
|
111
111
|
h("input", {
|
|
112
|
-
id:
|
|
112
|
+
id: t.$attrs.id,
|
|
113
113
|
ref_key: "baseInputEl",
|
|
114
114
|
ref: b,
|
|
115
115
|
"data-cy": e.dataCy,
|
|
116
|
-
name:
|
|
116
|
+
name: t.$attrs.name,
|
|
117
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", [
|
|
118
118
|
{
|
|
119
119
|
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
120
120
|
"is-valid valid-bg !uikit-pr-9": e.isValid
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!
|
|
123
|
+
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!t.$slots.righticon
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!
|
|
126
|
+
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!t.$slots.leftIcon
|
|
127
127
|
},
|
|
128
128
|
e.inputClass
|
|
129
129
|
]]),
|
|
130
|
-
autocomplete:
|
|
131
|
-
disabled:
|
|
132
|
-
"aria-labelledby":
|
|
133
|
-
readonly:
|
|
130
|
+
autocomplete: t.$attrs.autocomplete === "on" ? "on" : "off",
|
|
131
|
+
disabled: t.$attrs.disabled,
|
|
132
|
+
"aria-labelledby": t.$attrs.id,
|
|
133
|
+
readonly: t.$attrs.readonly,
|
|
134
134
|
type: n.value,
|
|
135
|
-
pattern:
|
|
136
|
-
min:
|
|
137
|
-
max:
|
|
138
|
-
maxlength:
|
|
139
|
-
inputmode:
|
|
140
|
-
placeholder:
|
|
135
|
+
pattern: t.$attrs.pattern,
|
|
136
|
+
min: t.$attrs.min,
|
|
137
|
+
max: t.$attrs.max,
|
|
138
|
+
maxlength: t.$attrs.maxlength,
|
|
139
|
+
inputmode: t.$attrs.inputmode,
|
|
140
|
+
placeholder: t.$attrs.placeholder,
|
|
141
141
|
value: a.value,
|
|
142
|
-
onClick: i[0] || (i[0] = (
|
|
143
|
-
onFocusin: i[1] || (i[1] =
|
|
144
|
-
onFocusout: i[2] || (i[2] =
|
|
145
|
-
onInput:
|
|
142
|
+
onClick: i[0] || (i[0] = (l) => k("click", l)),
|
|
143
|
+
onFocusin: i[1] || (i[1] = $(() => e.labelText && s(H)(), ["stop"])),
|
|
144
|
+
onFocusout: i[2] || (i[2] = $((l) => e.labelText && !e.keepFloatingLabel && s(x)(a.value), ["stop"])),
|
|
145
|
+
onInput: $(P, ["stop"]),
|
|
146
146
|
onKeydown: [
|
|
147
147
|
i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
|
|
148
|
-
i[4] || (i[4] = (
|
|
148
|
+
i[4] || (i[4] = (l) => k("keydown", l))
|
|
149
149
|
],
|
|
150
|
-
onKeyup: i[5] || (i[5] = (
|
|
150
|
+
onKeyup: i[5] || (i[5] = (l) => k("keyup", l))
|
|
151
151
|
}, null, 42, J),
|
|
152
152
|
h("fieldset", {
|
|
153
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", [
|
|
@@ -165,10 +165,10 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
165
165
|
class: v(["visible-label uikit-opacity-0", [
|
|
166
166
|
{ "uikit-mx-5px": e.labelText },
|
|
167
167
|
{
|
|
168
|
-
"uikit-visible uikit-inline-block": s(
|
|
168
|
+
"uikit-visible uikit-inline-block": s(o) === "floating-label"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"uikit-invisible uikit-hidden": s(
|
|
171
|
+
"uikit-invisible uikit-hidden": s(o) === "inline-label"
|
|
172
172
|
}
|
|
173
173
|
]]),
|
|
174
174
|
innerHTML: e.labelText
|
|
@@ -177,35 +177,35 @@ const J = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
177
177
|
], 2),
|
|
178
178
|
e.labelText ? (u(), O(D, {
|
|
179
179
|
key: 0,
|
|
180
|
-
for:
|
|
180
|
+
for: t.$attrs.id,
|
|
181
181
|
"label-text": e.labelText,
|
|
182
|
-
"label-state": s(
|
|
182
|
+
"label-state": s(o),
|
|
183
183
|
"is-valid": e.isValid,
|
|
184
|
-
required:
|
|
185
|
-
disabled:
|
|
184
|
+
required: t.$attrs.required,
|
|
185
|
+
disabled: t.$attrs.disabled,
|
|
186
186
|
"label-classes": [
|
|
187
|
-
s(
|
|
187
|
+
s(o) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
188
188
|
e.labelClasses
|
|
189
189
|
],
|
|
190
190
|
"label-text-classes": e.labelTextClasses
|
|
191
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) :
|
|
192
|
-
|
|
193
|
-
e.isValid === !1 ? (u(!0), r(T, { key: 0 },
|
|
194
|
-
key: `${
|
|
191
|
+
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : y("", !0),
|
|
192
|
+
c(t.$slots, "feedback", {}, () => [
|
|
193
|
+
e.isValid === !1 ? (u(!0), r(T, { key: 0 }, B(f.value.invalid, (l, g) => (u(), r("div", {
|
|
194
|
+
key: `${t.$attrs.id}_invalid_${g}`,
|
|
195
195
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
196
|
-
innerHTML:
|
|
197
|
-
}, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 },
|
|
198
|
-
key: `${
|
|
196
|
+
innerHTML: l
|
|
197
|
+
}, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, B(f.value.valid, (l, g) => (u(), r("div", {
|
|
198
|
+
key: `${t.$attrs.id}_valid_${g}`,
|
|
199
199
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
200
|
-
innerHTML:
|
|
201
|
-
}, null, 8, Y))), 128)) :
|
|
200
|
+
innerHTML: l
|
|
201
|
+
}, null, 8, Y))), 128)) : y("", !0)
|
|
202
202
|
], !0),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
])) :
|
|
203
|
+
t.$slots["under-label"] ? (u(), r("div", Z, [
|
|
204
|
+
c(t.$slots, "under-label", {}, void 0, !0)
|
|
205
|
+
])) : y("", !0)
|
|
206
206
|
], 2));
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
export {
|
|
210
|
-
|
|
210
|
+
te as default
|
|
211
211
|
};
|