@wikicasa-dev/components 2.2.9-alpha.35 → 2.2.9-alpha.36
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 +4 -3
- package/dist/Swiper/controller.js +2 -1
- package/dist/Swiper/free-mode.js +4 -3
- package/dist/Swiper/keyboard.js +4 -3
- package/dist/Swiper/navigation.js +4 -3
- package/dist/Swiper/pagination.js +4 -3
- package/dist/Swiper/thumbs.js +4 -3
- package/dist/UIKit/AccessibleSelect.js +3 -2
- 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 +3 -2
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +3 -2
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +3 -2
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.js +3 -2
- package/dist/UIKit/BaseFloatingLabel.js +5 -39
- package/dist/UIKit/BaseInput.js +5 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +5 -206
- package/dist/UIKit/BaseSnackbar.js +3 -2
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.js +5 -41
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +3 -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 +5 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +5 -81
- package/dist/UIKit/StaticSpinner.js +5 -26
- 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/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/SwiperCarousel2.css +1 -0
- package/dist/assets/swiper-swiper.css +1 -0
- package/dist/assets/swiper-zoom.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.js +6 -243
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/index.js +92 -82
- package/dist/{chunks/AccessibleSelect.vue_vue_type_style_index_0_lang.DWwkWpAC.js → packages/components/lib/UIKit/AccessibleSelect.vue.js} +4 -3
- package/dist/{chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.Qp6BrYox.js → packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js} +5 -5
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.CL5zNPzY.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +4 -4
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.BqjzG2As.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +5 -5
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_style_index_0_lang.DwEHSyBO.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +4 -4
- package/dist/{chunks/ClearableAutocomplete.vue_vue_type_style_index_0_lang.DUOBcBPN.js → packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js} +5 -4
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +19 -0
- package/dist/{chunks/BaseAutocomplete.vue_vue_type_style_index_0_lang.BW_JCkOV.js → packages/components/lib/UIKit/BaseAutocomplete.vue.js} +25 -24
- package/dist/{chunks/BaseBadge.vue_vue_type_style_index_0_lang.BnYtlFXq.js → packages/components/lib/UIKit/BaseBadge.vue.js} +6 -6
- package/dist/{chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.CcfuB26u.js → packages/components/lib/UIKit/BaseBreadcrumb.vue.js} +7 -7
- package/dist/{chunks/BaseButton.vue_vue_type_script_setup_true_lang.CswNVEW_.js → packages/components/lib/UIKit/BaseButton.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/{chunks/BaseDropDown.vue_vue_type_style_index_0_lang.z4eFD2_f.js → packages/components/lib/UIKit/BaseDropDown.vue.js} +12 -12
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +40 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +211 -0
- package/dist/{chunks/BaseModal.vue_vue_type_style_index_0_lang.B8U_buif.js → packages/components/lib/UIKit/BaseModal.vue.js} +2 -2
- package/dist/{chunks/BasePagination.vue_vue_type_script_setup_true_lang.CkGMhOm-.js → packages/components/lib/UIKit/BasePagination.vue.js} +1 -1
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.DvQ4ZKvE.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +9 -9
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +207 -0
- package/dist/{chunks/BaseSnackbar.vue_vue_type_style_index_0_lang.DJqVfg6P.js → packages/components/lib/UIKit/BaseSnackbar.vue.js} +2 -2
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +127 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +42 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/{chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.DMPiMivr.js → packages/components/lib/UIKit/BaseUploadFile.vue.js} +7 -7
- package/dist/{chunks/CheckboxBtn.vue_vue_type_style_index_0_lang.MYOfjOwM.js → packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js} +8 -8
- package/dist/{chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.aDZDPjgR.js → packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js} +4 -3
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.g-a7DM3l.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +3 -3
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DtBZuHm2.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +3 -3
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +21 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.DEb8nfZp.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +4 -4
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/{chunks/BaseTabList.vue_vue_type_script_setup_true_lang.BXvkXKbT.js → packages/components/lib/UIKit/Tab/BaseTabList.vue.js} +3 -3
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CM1ObHXU.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/{chunks/BaseTabView.vue_vue_type_script_setup_true_lang.BocXkfTw.js → packages/components/lib/UIKit/Tab/BaseTabView.vue.js} +17 -17
- package/dist/{chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.yALl_gpB.js → packages/components/lib/chart/DoughnutChart.vue.js} +6 -6
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.Df20jEOd.js → packages/components/lib/chart/LineChart.vue.js} +7 -7
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BidNzYDc.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BnLNx3be.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +3 -3
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +246 -0
- package/package.json +1 -1
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.BVR-COlL.js +0 -19
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- /package/dist/assets/{thumbs.css → swiper-controller.css} +0 -0
- /package/dist/assets/{free-mode.css → swiper-free-mode.css} +0 -0
- /package/dist/assets/{navigation.css → swiper-navigation.css} +0 -0
- /package/dist/assets/{pagination.css → swiper-pagination.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/free-mode.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../packages/components/lib/UIKit/AccessibleSelect.vue.js";
|
|
2
|
+
import '../assets/AccessibleSelect.css';/* empty css */
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as default
|
|
4
5
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../../packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
2
|
+
import '../../assets/BaseAccordionItem.css';/* empty css */
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as default
|
|
4
5
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../../packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js";
|
|
2
|
+
import '../../assets/ClearableAutocomplete.css';/* empty css */
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as default
|
|
4
5
|
};
|
package/dist/UIKit/BaseAlert.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseAutocomplete.vue.js";
|
|
2
|
+
import '../assets/BaseAutocomplete.css';/* empty css */
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
o as default
|
|
4
5
|
};
|
package/dist/UIKit/BaseBadge.js
CHANGED
package/dist/UIKit/BaseButton.js
CHANGED
package/dist/UIKit/BaseCard.js
CHANGED
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
type: { default: "" },
|
|
7
|
-
rootComponent: { default: "div" },
|
|
8
|
-
cardImgClasses: { default: "" },
|
|
9
|
-
cardBodyClasses: { default: "" }
|
|
10
|
-
},
|
|
11
|
-
emits: ["click"],
|
|
12
|
-
setup(e, { emit: l }) {
|
|
13
|
-
const r = l, n = d(
|
|
14
|
-
() => e.type === "news" ? "news-card" : e.type
|
|
15
|
-
), i = d(() => e.type ? `${e.type}-img` : "");
|
|
16
|
-
return (s, t) => (f(), u(y(e.rootComponent), {
|
|
17
|
-
class: a(["card", [n.value]]),
|
|
18
|
-
onClick: t[0] || (t[0] = (m) => r("click", m))
|
|
19
|
-
}, {
|
|
20
|
-
default: p(() => [
|
|
21
|
-
o("div", {
|
|
22
|
-
class: a(["card-img", [i.value, e.cardImgClasses]])
|
|
23
|
-
}, [
|
|
24
|
-
c(s.$slots, "card-image", {}, void 0, !0)
|
|
25
|
-
], 2),
|
|
26
|
-
o("div", {
|
|
27
|
-
class: a(["card-body", [e.cardBodyClasses]])
|
|
28
|
-
}, [
|
|
29
|
-
c(s.$slots, "card-description", {}, void 0, !0)
|
|
30
|
-
], 2)
|
|
31
|
-
]),
|
|
32
|
-
_: 3
|
|
33
|
-
}, 8, ["class"]));
|
|
34
|
-
}
|
|
35
|
-
}), I = /* @__PURE__ */ v(g, [["__scopeId", "data-v-bf21cda3"]]);
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseCard.vue.js";
|
|
2
|
+
import '../assets/BaseCard.css';/* empty css */
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-bf21cda3"]]);
|
|
36
5
|
export {
|
|
37
|
-
|
|
6
|
+
m as default
|
|
38
7
|
};
|
|
@@ -1,107 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
props: /* @__PURE__ */ x({
|
|
6
|
-
labels: {},
|
|
7
|
-
type: { default: "full" },
|
|
8
|
-
mode: { default: "" },
|
|
9
|
-
btnBgColor: { default: "uikit-bg-w-lavender" },
|
|
10
|
-
btnClasses: {},
|
|
11
|
-
borderContainerColor: { default: "uikit-border-w-secondary" },
|
|
12
|
-
size: { default: "" }
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {
|
|
15
|
-
default: null
|
|
16
|
-
},
|
|
17
|
-
modelModifiers: {}
|
|
18
|
-
}),
|
|
19
|
-
emits: ["update:modelValue"],
|
|
20
|
-
setup(e) {
|
|
21
|
-
const t = e, s = C(e, "modelValue"), n = () => {
|
|
22
|
-
s.value = t.labels.leftToggle;
|
|
23
|
-
}, u = () => {
|
|
24
|
-
s.value = t.labels.rightToggle;
|
|
25
|
-
};
|
|
26
|
-
(() => {
|
|
27
|
-
if (t.labels.leftToggle.checked) {
|
|
28
|
-
n();
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (t.labels.rightToggle.checked) {
|
|
32
|
-
u();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
n();
|
|
36
|
-
})();
|
|
37
|
-
const r = (l) => s.value?.label === l.label, b = d(() => r(t.labels.leftToggle)), h = d(() => r(t.labels.rightToggle));
|
|
38
|
-
return (l, a) => (c(), g("div", {
|
|
39
|
-
id: l.$attrs.id || "",
|
|
40
|
-
"data-cy": l.$attrs["data-cy"] || "",
|
|
41
|
-
class: o(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor, e.size]])
|
|
42
|
-
}, [
|
|
43
|
-
i("div", {
|
|
44
|
-
"data-btn-bg-color": e.btnBgColor,
|
|
45
|
-
"data-cy": `bct-left-btn${e.labels.leftToggle.label ? `-${e.labels.leftToggle.label}` : ""}`,
|
|
46
|
-
class: o(["left-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
|
|
47
|
-
{
|
|
48
|
-
"base-complex-toggle-active": b.value
|
|
49
|
-
}
|
|
50
|
-
]]),
|
|
51
|
-
onClick: a[0] || (a[0] = m((v) => n(), ["stop"]))
|
|
52
|
-
}, [
|
|
53
|
-
f(l.$slots, "left_icon", {}, () => [
|
|
54
|
-
e.labels.leftToggle.icon ? (c(), g("img", {
|
|
55
|
-
key: 0,
|
|
56
|
-
class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
|
|
57
|
-
src: e.labels.leftToggle.icon.src,
|
|
58
|
-
alt: e.labels.leftToggle.icon.alt,
|
|
59
|
-
width: "15",
|
|
60
|
-
height: "15"
|
|
61
|
-
}, null, 8, L)) : k("", !0)
|
|
62
|
-
], !0),
|
|
63
|
-
i("span", {
|
|
64
|
-
class: "base-complex-toggle-label uikit-relative uikit-z-10",
|
|
65
|
-
innerHTML: e.labels.leftToggle.label
|
|
66
|
-
}, null, 8, M)
|
|
67
|
-
], 10, B),
|
|
68
|
-
i("div", {
|
|
69
|
-
"data-btn-bg-color": e.btnBgColor,
|
|
70
|
-
"data-cy": `bct-right-btn${e.labels.rightToggle.label ? `-${e.labels.rightToggle.label}` : ""}`,
|
|
71
|
-
class: o(["right-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer", [
|
|
72
|
-
{
|
|
73
|
-
"base-complex-toggle-active": h.value
|
|
74
|
-
}
|
|
75
|
-
]]),
|
|
76
|
-
onClick: a[1] || (a[1] = m((v) => u(), ["stop"]))
|
|
77
|
-
}, [
|
|
78
|
-
f(l.$slots, "right_icon", {}, () => [
|
|
79
|
-
e.labels.rightToggle.icon ? (c(), g("img", {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
|
|
82
|
-
src: e.labels.rightToggle.icon.src,
|
|
83
|
-
alt: e.labels.rightToggle.icon.alt,
|
|
84
|
-
width: "15",
|
|
85
|
-
height: "15"
|
|
86
|
-
}, null, 8, V)) : k("", !0)
|
|
87
|
-
], !0),
|
|
88
|
-
i("span", {
|
|
89
|
-
class: "base-complex-toggle-label uikit-relative uikit-z-10",
|
|
90
|
-
innerHTML: e.labels.rightToggle.label
|
|
91
|
-
}, null, 8, w)
|
|
92
|
-
], 10, z),
|
|
93
|
-
i("div", {
|
|
94
|
-
class: o(["uikit-absolute uikit-transition-all uikit-duration-200 uikit-ease-out", [
|
|
95
|
-
e.type === "full" ? "base-complex-toggle-active-bg" : "base-complex-toggle-active-padded-bg",
|
|
96
|
-
e.btnBgColor,
|
|
97
|
-
e.mode,
|
|
98
|
-
b.value ? "translateX-left" : "translateX-right",
|
|
99
|
-
e.btnClasses
|
|
100
|
-
]])
|
|
101
|
-
}, null, 2)
|
|
102
|
-
], 10, $));
|
|
103
|
-
}
|
|
104
|
-
}), N = /* @__PURE__ */ y(H, [["__scopeId", "data-v-74915e0a"]]);
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseComplexToggle.vue.js";
|
|
2
|
+
import '../assets/BaseComplexToggle.css';/* empty css */
|
|
3
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-74915e0a"]]);
|
|
105
5
|
export {
|
|
106
|
-
|
|
6
|
+
p as default
|
|
107
7
|
};
|
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
labelState: { default: "inline-label" },
|
|
7
|
-
isValid: { type: [Boolean, null], default: null },
|
|
8
|
-
labelText: {},
|
|
9
|
-
disabled: { type: [String, Boolean], default: !1 },
|
|
10
|
-
labelClasses: {},
|
|
11
|
-
labelTextClasses: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["click"],
|
|
14
|
-
setup(e, { emit: n }) {
|
|
15
|
-
const o = n;
|
|
16
|
-
return (i, l) => (s(), a("label", {
|
|
17
|
-
for: i.$attrs.for,
|
|
18
|
-
class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
|
|
19
|
-
onClick: l[0] || (l[0] = u((x) => o("click"), ["stop"]))
|
|
20
|
-
}, [
|
|
21
|
-
r("span", {
|
|
22
|
-
class: t(["uikit-font-medium [font-size:inherit]", [
|
|
23
|
-
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
24
|
-
e.labelTextClasses
|
|
25
|
-
]]),
|
|
26
|
-
innerHTML: e.labelText
|
|
27
|
-
}, null, 10, f),
|
|
28
|
-
i.$attrs.required ? (s(), a("sup", {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: t(["uikit-absolute -uikit-top-[0.3rem] [font-size:inherit]", [
|
|
31
|
-
{ "uikit-text-w-secondary": e.disabled },
|
|
32
|
-
{ "uikit-text-w-danger": e.isValid === !1 },
|
|
33
|
-
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
34
|
-
]])
|
|
35
|
-
}, " *", 2)) : c("", !0)
|
|
36
|
-
], 10, k));
|
|
37
|
-
}
|
|
38
|
-
}), y = /* @__PURE__ */ b(m, [["__scopeId", "data-v-ba2cc6aa"]]);
|
|
1
|
+
import a from "../packages/components/lib/UIKit/BaseFloatingLabel.vue.js";
|
|
2
|
+
import '../assets/BaseFloatingLabel.css';/* empty css */
|
|
3
|
+
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(a, [["__scopeId", "data-v-ba2cc6aa"]]);
|
|
39
5
|
export {
|
|
40
|
-
|
|
6
|
+
e as default
|
|
41
7
|
};
|
package/dist/UIKit/BaseInput.js
CHANGED
|
@@ -1,212 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import '../assets/BaseInput.css';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
|
-
key: 1,
|
|
7
|
-
class: "under-label uikit-absolute uikit-text-12"
|
|
8
|
-
}, U = /* @__PURE__ */ z({
|
|
9
|
-
inheritAttrs: !1,
|
|
10
|
-
__name: "BaseInput",
|
|
11
|
-
props: /* @__PURE__ */ C({
|
|
12
|
-
inputClass: {},
|
|
13
|
-
labelText: { default: "" },
|
|
14
|
-
feedback: {},
|
|
15
|
-
isValid: { type: [Boolean, null], default: null },
|
|
16
|
-
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
17
|
-
formatter: { default: null },
|
|
18
|
-
labelClasses: {},
|
|
19
|
-
fieldsetClasses: {},
|
|
20
|
-
labelTextClasses: {},
|
|
21
|
-
withLeftIcon: { type: Boolean, default: () => {
|
|
22
|
-
} },
|
|
23
|
-
withRightIcon: { type: Boolean, default: () => {
|
|
24
|
-
} },
|
|
25
|
-
dataCy: {}
|
|
26
|
-
}, {
|
|
27
|
-
modelValue: { default: "" },
|
|
28
|
-
modelModifiers: {}
|
|
29
|
-
}),
|
|
30
|
-
emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
31
|
-
setup(e, { expose: M, emit: E }) {
|
|
32
|
-
const o = A(e, "modelValue"), a = m(""), k = E, {
|
|
33
|
-
labelState: d,
|
|
34
|
-
handleFocusIn: H,
|
|
35
|
-
handleFocusOut: x,
|
|
36
|
-
setInlineLabel: I,
|
|
37
|
-
setFloatingLabel: V
|
|
38
|
-
} = D(k), n = m("text"), f = m({}), b = m(null), R = () => {
|
|
39
|
-
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]));
|
|
40
|
-
}, L = (t, i) => {
|
|
41
|
-
if (!e.formatter || !e.formatter.formatFn)
|
|
42
|
-
return a.value = t, "";
|
|
43
|
-
const l = t.length ? e.formatter.formatFn(t) : t;
|
|
44
|
-
return i && (i.value = l), a.value = l, l;
|
|
45
|
-
}, F = (t, i = !0) => {
|
|
46
|
-
if (i && (!e.formatter || !e.formatter.unFormatFn))
|
|
47
|
-
return o.value = t, t;
|
|
48
|
-
if (!i || !e.formatter || !e.formatter.unFormatFn) return;
|
|
49
|
-
const l = e.formatter.unFormatFn(t);
|
|
50
|
-
return o.value = l ?? "", l;
|
|
51
|
-
}, P = ({ target: t }) => {
|
|
52
|
-
const i = t, l = F(i.value);
|
|
53
|
-
L(
|
|
54
|
-
`${l}`,
|
|
55
|
-
l === o.value ? i : void 0
|
|
56
|
-
);
|
|
57
|
-
}, q = () => {
|
|
58
|
-
o.value = "", I();
|
|
59
|
-
}, K = () => {
|
|
60
|
-
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
61
|
-
};
|
|
62
|
-
w(
|
|
63
|
-
() => e.feedback,
|
|
64
|
-
() => {
|
|
65
|
-
R();
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
immediate: !0
|
|
69
|
-
}
|
|
70
|
-
), w(
|
|
71
|
-
o,
|
|
72
|
-
(t) => {
|
|
73
|
-
L(
|
|
74
|
-
`${t}`,
|
|
75
|
-
F(`${t}`, !1) === t ? b.value : void 0
|
|
76
|
-
), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? V() : !a.value && document && document.activeElement !== b.value && I();
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
immediate: !0
|
|
80
|
-
}
|
|
81
|
-
), w(
|
|
82
|
-
() => e.keepFloatingLabel,
|
|
83
|
-
(t) => {
|
|
84
|
-
t ? V() : x(o.value);
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
const S = N();
|
|
88
|
-
return n.value = S.type || "text", M({
|
|
89
|
-
select: () => {
|
|
90
|
-
b.value?.select();
|
|
91
|
-
}
|
|
92
|
-
}), (t, i) => (u(), r("div", {
|
|
93
|
-
class: c(["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", [
|
|
94
|
-
t.$attrs.class,
|
|
95
|
-
{ "floating-label": e.labelText },
|
|
96
|
-
s(d) === "floating-label" ? "floating-state" : "inline-state",
|
|
97
|
-
{
|
|
98
|
-
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!t.$slots.righticon
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!t.$slots.leftIcon
|
|
102
|
-
},
|
|
103
|
-
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
104
|
-
]])
|
|
105
|
-
}, [
|
|
106
|
-
v(t.$slots, "leftIcon", {}, void 0, !0),
|
|
107
|
-
v(t.$slots, "righticon", {
|
|
108
|
-
handleClean: q,
|
|
109
|
-
handleShowPasswd: K,
|
|
110
|
-
curType: n.value
|
|
111
|
-
}, void 0, !0),
|
|
112
|
-
h("input", {
|
|
113
|
-
id: t.$attrs.id,
|
|
114
|
-
ref_key: "baseInputEl",
|
|
115
|
-
ref: b,
|
|
116
|
-
"data-cy": e.dataCy,
|
|
117
|
-
name: t.$attrs.name,
|
|
118
|
-
class: c(["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", [
|
|
119
|
-
{
|
|
120
|
-
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
121
|
-
"is-valid valid-bg !uikit-pr-9": e.isValid
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!t.$slots.righticon
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!t.$slots.leftIcon
|
|
128
|
-
},
|
|
129
|
-
e.inputClass
|
|
130
|
-
]]),
|
|
131
|
-
autocomplete: t.$attrs.autocomplete === "on" ? "on" : "off",
|
|
132
|
-
disabled: t.$attrs.disabled,
|
|
133
|
-
"aria-labelledby": t.$attrs.id,
|
|
134
|
-
readonly: t.$attrs.readonly,
|
|
135
|
-
type: n.value,
|
|
136
|
-
pattern: t.$attrs.pattern,
|
|
137
|
-
min: t.$attrs.min,
|
|
138
|
-
max: t.$attrs.max,
|
|
139
|
-
maxlength: t.$attrs.maxlength,
|
|
140
|
-
inputmode: t.$attrs.inputmode,
|
|
141
|
-
placeholder: t.$attrs.placeholder,
|
|
142
|
-
value: a.value,
|
|
143
|
-
onClick: i[0] || (i[0] = (l) => k("click", l)),
|
|
144
|
-
onFocusin: i[1] || (i[1] = $(() => e.labelText && s(H)(), ["stop"])),
|
|
145
|
-
onFocusout: i[2] || (i[2] = $((l) => e.labelText && !e.keepFloatingLabel && s(x)(a.value), ["stop"])),
|
|
146
|
-
onInput: $(P, ["stop"]),
|
|
147
|
-
onKeydown: [
|
|
148
|
-
i[3] || (i[3] = j(() => k("keydownEnterPressed"), ["enter"])),
|
|
149
|
-
i[4] || (i[4] = (l) => k("keydown", l))
|
|
150
|
-
],
|
|
151
|
-
onKeyup: i[5] || (i[5] = (l) => k("keyup", l))
|
|
152
|
-
}, null, 42, J),
|
|
153
|
-
h("fieldset", {
|
|
154
|
-
class: c(["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", [
|
|
155
|
-
{
|
|
156
|
-
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
157
|
-
"is-valid uikit-border-w-primary": e.isValid,
|
|
158
|
-
"uikit-border-w-secondary": e.isValid === null
|
|
159
|
-
},
|
|
160
|
-
{ "uikit-top-0": !e.labelText },
|
|
161
|
-
e.fieldsetClasses
|
|
162
|
-
]])
|
|
163
|
-
}, [
|
|
164
|
-
h("legend", Q, [
|
|
165
|
-
h("span", {
|
|
166
|
-
class: c(["visible-label uikit-opacity-0", [
|
|
167
|
-
{ "uikit-mx-5px": e.labelText },
|
|
168
|
-
{
|
|
169
|
-
"uikit-visible uikit-inline-block": s(d) === "floating-label"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"uikit-invisible uikit-hidden": s(d) === "inline-label"
|
|
173
|
-
}
|
|
174
|
-
]]),
|
|
175
|
-
innerHTML: e.labelText
|
|
176
|
-
}, null, 10, W)
|
|
177
|
-
])
|
|
178
|
-
], 2),
|
|
179
|
-
e.labelText ? (u(), O(p, {
|
|
180
|
-
key: 0,
|
|
181
|
-
for: t.$attrs.id,
|
|
182
|
-
"label-text": e.labelText,
|
|
183
|
-
"label-state": s(d),
|
|
184
|
-
"is-valid": e.isValid,
|
|
185
|
-
required: t.$attrs.required,
|
|
186
|
-
disabled: t.$attrs.disabled,
|
|
187
|
-
"label-classes": [
|
|
188
|
-
s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
189
|
-
e.labelClasses
|
|
190
|
-
],
|
|
191
|
-
"label-text-classes": e.labelTextClasses
|
|
192
|
-
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : y("", !0),
|
|
193
|
-
v(t.$slots, "feedback", {}, () => [
|
|
194
|
-
e.isValid === !1 ? (u(!0), r(T, { key: 0 }, B(f.value.invalid, (l, g) => (u(), r("div", {
|
|
195
|
-
key: `${t.$attrs.id}_invalid_${g}`,
|
|
196
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
197
|
-
innerHTML: l
|
|
198
|
-
}, null, 8, X))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, B(f.value.valid, (l, g) => (u(), r("div", {
|
|
199
|
-
key: `${t.$attrs.id}_valid_${g}`,
|
|
200
|
-
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
201
|
-
innerHTML: l
|
|
202
|
-
}, null, 8, Y))), 128)) : y("", !0)
|
|
203
|
-
], !0),
|
|
204
|
-
t.$slots["under-label"] ? (u(), r("div", Z, [
|
|
205
|
-
v(t.$slots, "under-label", {}, void 0, !0)
|
|
206
|
-
])) : y("", !0)
|
|
207
|
-
], 2));
|
|
208
|
-
}
|
|
209
|
-
}), ae = /* @__PURE__ */ G(U, [["__scopeId", "data-v-0f9ebca6"]]);
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseInput.vue.js";
|
|
2
|
+
import '../assets/BaseInput.css';/* empty css */
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0f9ebca6"]]);
|
|
210
5
|
export {
|
|
211
|
-
|
|
6
|
+
e as default
|
|
212
7
|
};
|
package/dist/UIKit/BaseModal.js
CHANGED