@wikicasa-dev/components 1.6.13 → 1.6.15
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/BaseInput.js +65 -59
- package/dist/UIKit/TailwindComponents/twBtnComponent.d.ts +4 -0
- package/dist/assets/BaseInput.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -16
- package/dist/twBtnComponent.js +318 -0
- package/package.json +1 -1
package/dist/BaseInput.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './assets/BaseInput.css';
|
|
2
|
-
import { defineComponent as N, mergeModels as
|
|
2
|
+
import { defineComponent as N, mergeModels as M, useModel as O, ref as b, watch as c, useAttrs as j, openBlock as s, createElementBlock as r, normalizeClass as p, unref as o, renderSlot as m, createElementVNode as v, withModifiers as g, withKeys as D, createBlock as G, createCommentVNode as w, Fragment as C, renderList as B } from "vue";
|
|
3
3
|
import J from "./BaseFloatingLabel.js";
|
|
4
4
|
import { useFloatingLabel as Q } from "./useFloatingLabel.js";
|
|
5
5
|
import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
const
|
|
6
|
+
const W = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], X = { 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" }, Y = ["innerHTML"], Z = ["innerHTML"], U = ["innerHTML"], x = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "under-label uikit-absolute uikit-text-12"
|
|
9
9
|
}, _ = /* @__PURE__ */ N({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "BaseInput",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ M({
|
|
13
13
|
inputClass: { default: "" },
|
|
14
14
|
labelText: { default: "" },
|
|
15
15
|
feedback: {},
|
|
@@ -20,46 +20,52 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
20
20
|
modelValue: { default: "" },
|
|
21
21
|
modelModifiers: {}
|
|
22
22
|
}),
|
|
23
|
-
emits: /* @__PURE__ */
|
|
24
|
-
setup(y, { expose:
|
|
25
|
-
const t = y,
|
|
26
|
-
labelState:
|
|
27
|
-
handleFocusIn:
|
|
23
|
+
emits: /* @__PURE__ */ M(["click", "keydownEnterPressed", "focusin", "focusout", "keydown"], ["update:modelValue"]),
|
|
24
|
+
setup(y, { expose: E, emit: H }) {
|
|
25
|
+
const t = y, l = O(y, "modelValue"), h = b(""), k = H, {
|
|
26
|
+
labelState: u,
|
|
27
|
+
handleFocusIn: P,
|
|
28
28
|
handleFocusOut: V,
|
|
29
29
|
setInlineLabel: F,
|
|
30
|
-
setFloatingLabel:
|
|
31
|
-
} = Q(k),
|
|
30
|
+
setFloatingLabel: L
|
|
31
|
+
} = Q(k), n = b("text"), d = b({}), f = b(null), q = () => {
|
|
32
32
|
t.feedback && (d.value = t.feedback, t.feedback.valid && typeof t.feedback.valid == "string" && (d.value.valid = [t.feedback.valid]), t.feedback.invalid && typeof t.feedback.invalid == "string" && (d.value.invalid = [t.feedback.invalid]));
|
|
33
|
-
},
|
|
33
|
+
}, T = (e, i) => {
|
|
34
34
|
if (!t.formatter || !t.formatter.formatFn)
|
|
35
|
-
return "";
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
},
|
|
35
|
+
return h.value = e, "";
|
|
36
|
+
const a = e.length ? t.formatter.formatFn(e) : e;
|
|
37
|
+
return i ? i.value = a : h.value = a, a;
|
|
38
|
+
}, I = (e) => {
|
|
39
39
|
if (!t.formatter || !t.formatter.unFormatFn)
|
|
40
|
-
return "";
|
|
40
|
+
return l.value = e, "";
|
|
41
41
|
const i = t.formatter.unFormatFn(e);
|
|
42
|
-
return
|
|
42
|
+
return l.value = i, i;
|
|
43
43
|
}, z = ({ target: e }) => {
|
|
44
|
-
const i = e;
|
|
45
|
-
|
|
44
|
+
const i = e, a = I(i.value);
|
|
45
|
+
a || (l.value = i.value), T(
|
|
46
|
+
`${a}`,
|
|
47
|
+
a === l.value ? i : void 0
|
|
48
|
+
);
|
|
46
49
|
}, S = () => {
|
|
47
|
-
|
|
50
|
+
l.value = "", F();
|
|
48
51
|
}, A = () => {
|
|
49
|
-
|
|
52
|
+
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
50
53
|
};
|
|
51
54
|
c(
|
|
52
55
|
() => t.feedback,
|
|
53
56
|
() => {
|
|
54
|
-
|
|
57
|
+
q();
|
|
55
58
|
},
|
|
56
59
|
{
|
|
57
60
|
immediate: !0
|
|
58
61
|
}
|
|
59
62
|
), c(
|
|
60
|
-
|
|
63
|
+
l,
|
|
61
64
|
(e) => {
|
|
62
|
-
|
|
65
|
+
T(
|
|
66
|
+
`${e}`,
|
|
67
|
+
I(`${e}`) === e ? f.value : void 0
|
|
68
|
+
), e != null && `${e}`.length > 0 && u.value !== "floating-label" ? L() : !`${e}`.length && document && document.activeElement != f.value && F();
|
|
63
69
|
},
|
|
64
70
|
{
|
|
65
71
|
immediate: !0
|
|
@@ -67,20 +73,20 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
67
73
|
), c(
|
|
68
74
|
() => t.keepFloatingLabel,
|
|
69
75
|
(e) => {
|
|
70
|
-
e ?
|
|
76
|
+
e ? L() : V(l.value);
|
|
71
77
|
}
|
|
72
78
|
);
|
|
73
79
|
const K = j();
|
|
74
|
-
return
|
|
80
|
+
return n.value = K.type || "text", E({
|
|
75
81
|
select: () => {
|
|
76
|
-
|
|
82
|
+
f.value?.select();
|
|
77
83
|
}
|
|
78
|
-
}), (e, i) => (
|
|
79
|
-
class:
|
|
84
|
+
}), (e, i) => (s(), r("div", {
|
|
85
|
+
class: p(["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", [
|
|
80
86
|
e.$attrs.class,
|
|
81
87
|
{ "uikit-h-12": e.labelText },
|
|
82
88
|
{ "floating-label": e.labelText },
|
|
83
|
-
|
|
89
|
+
o(u) === "floating-label" ? "floating-state" : "inline-state",
|
|
84
90
|
{
|
|
85
91
|
"has-right-icon": e.$attrs["with-right-icon"] !== void 0 ? e.$attrs["with-right-icon"] : !!e.$slots.righticon
|
|
86
92
|
},
|
|
@@ -90,19 +96,19 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
90
96
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
91
97
|
]])
|
|
92
98
|
}, [
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
m(e.$slots, "leftIcon", {}, void 0, !0),
|
|
100
|
+
m(e.$slots, "righticon", {
|
|
95
101
|
handleClean: S,
|
|
96
102
|
handleShowPasswd: A,
|
|
97
|
-
curType:
|
|
103
|
+
curType: n.value
|
|
98
104
|
}, void 0, !0),
|
|
99
|
-
|
|
105
|
+
v("input", {
|
|
100
106
|
id: e.$attrs.id,
|
|
101
107
|
ref_key: "baseInputEl",
|
|
102
|
-
ref:
|
|
108
|
+
ref: f,
|
|
103
109
|
"data-cy": e.$attrs["data-cy"],
|
|
104
110
|
name: e.$attrs.name,
|
|
105
|
-
class:
|
|
111
|
+
class: p(["input-element uikit-peer uikit-relative uikit-z-10 uikit-box-border uikit-block uikit-h-12 uikit-w-full uikit-appearance-none uikit-truncate uikit-rounded-xs !uikit-border-none uikit-bg-transparent uikit-bg-no-repeat uikit-px-4 uikit-pt-5px uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none", [
|
|
106
112
|
{ "uikit-text-w-secondary": e.$attrs.disabled },
|
|
107
113
|
{
|
|
108
114
|
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
@@ -120,7 +126,7 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
120
126
|
disabled: e.$attrs.disabled,
|
|
121
127
|
"aria-labelledby": e.$attrs.id,
|
|
122
128
|
readonly: e.$attrs.readonly,
|
|
123
|
-
type:
|
|
129
|
+
type: n.value,
|
|
124
130
|
pattern: e.$attrs.pattern,
|
|
125
131
|
min: e.$attrs.min,
|
|
126
132
|
max: e.$attrs.max,
|
|
@@ -128,17 +134,17 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
128
134
|
inputmode: e.$attrs.inputmode,
|
|
129
135
|
placeholder: e.$attrs.placeholder,
|
|
130
136
|
onClick: i[0] || (i[0] = (a) => k("click", a)),
|
|
131
|
-
onFocusin: i[1] || (i[1] = g(() => e.labelText &&
|
|
132
|
-
onFocusout: i[2] || (i[2] = g((a) => e.labelText && !e.keepFloatingLabel &&
|
|
137
|
+
onFocusin: i[1] || (i[1] = g(() => e.labelText && o(P)(), ["stop"])),
|
|
138
|
+
onFocusout: i[2] || (i[2] = g((a) => e.labelText && !e.keepFloatingLabel && o(V)(l.value), ["stop"])),
|
|
133
139
|
onInput: g(z, ["stop"]),
|
|
134
|
-
value:
|
|
140
|
+
value: h.value,
|
|
135
141
|
onKeydown: [
|
|
136
142
|
i[3] || (i[3] = D(() => k("keydownEnterPressed"), ["enter"])),
|
|
137
143
|
i[4] || (i[4] = (a) => k("keydown", a))
|
|
138
144
|
]
|
|
139
|
-
}, null, 42,
|
|
140
|
-
|
|
141
|
-
class:
|
|
145
|
+
}, null, 42, W),
|
|
146
|
+
v("fieldset", {
|
|
147
|
+
class: p(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-bg-white 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", [
|
|
142
148
|
{ "uikit-bg-w-cultured": e.$attrs.disabled },
|
|
143
149
|
{
|
|
144
150
|
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
@@ -149,51 +155,51 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
|
|
|
149
155
|
e.$attrs["fieldset-classes"]
|
|
150
156
|
]])
|
|
151
157
|
}, [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
class:
|
|
158
|
+
v("legend", X, [
|
|
159
|
+
v("span", {
|
|
160
|
+
class: p(["visible-label uikit-opacity-0", [
|
|
155
161
|
{ "uikit-mx-5px": e.labelText },
|
|
156
162
|
{
|
|
157
|
-
"uikit-visible uikit-inline-block":
|
|
163
|
+
"uikit-visible uikit-inline-block": o(u) === "floating-label"
|
|
158
164
|
},
|
|
159
165
|
{
|
|
160
|
-
"uikit-invisible uikit-hidden":
|
|
166
|
+
"uikit-invisible uikit-hidden": o(u) === "inline-label"
|
|
161
167
|
}
|
|
162
168
|
]]),
|
|
163
169
|
innerHTML: e.labelText
|
|
164
|
-
}, null, 10,
|
|
170
|
+
}, null, 10, Y)
|
|
165
171
|
])
|
|
166
172
|
], 2),
|
|
167
|
-
e.labelText ? (
|
|
173
|
+
e.labelText ? (s(), G(J, {
|
|
168
174
|
key: 0,
|
|
169
175
|
for: e.$attrs.id,
|
|
170
176
|
"label-text": e.labelText,
|
|
171
|
-
"label-state":
|
|
177
|
+
"label-state": o(u),
|
|
172
178
|
"is-valid": e.isValid,
|
|
173
179
|
required: e.$attrs.required,
|
|
174
180
|
disabled: e.$attrs.disabled,
|
|
175
181
|
"label-classes": [
|
|
176
|
-
|
|
182
|
+
o(u) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
177
183
|
e.$attrs["label-classes"]
|
|
178
184
|
]
|
|
179
185
|
}, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes"])) : w("", !0),
|
|
180
|
-
|
|
181
|
-
e.isValid === !1 ? (
|
|
186
|
+
m(e.$slots, "feedback", {}, () => [
|
|
187
|
+
e.isValid === !1 ? (s(!0), r(C, { key: 0 }, B(d.value.invalid, (a, $) => (s(), r("div", {
|
|
182
188
|
key: `${e.$attrs.id}_invalid_${$}`,
|
|
183
189
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
184
190
|
innerHTML: a
|
|
185
|
-
}, null, 8,
|
|
191
|
+
}, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), r(C, { key: 1 }, B(d.value.valid, (a, $) => (s(), r("div", {
|
|
186
192
|
key: `${e.$attrs.id}_valid_${$}`,
|
|
187
193
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
188
194
|
innerHTML: a
|
|
189
|
-
}, null, 8,
|
|
195
|
+
}, null, 8, U))), 128)) : w("", !0)
|
|
190
196
|
], !0),
|
|
191
|
-
e.$slots["under-label"] ? (
|
|
192
|
-
|
|
197
|
+
e.$slots["under-label"] ? (s(), r("div", x, [
|
|
198
|
+
m(e.$slots, "under-label", {}, void 0, !0)
|
|
193
199
|
])) : w("", !0)
|
|
194
200
|
], 2));
|
|
195
201
|
}
|
|
196
|
-
}), ne = /* @__PURE__ */ R(_, [["__scopeId", "data-v-
|
|
202
|
+
}), ne = /* @__PURE__ */ R(_, [["__scopeId", "data-v-287eefaf"]]);
|
|
197
203
|
export {
|
|
198
204
|
ne as default
|
|
199
205
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.input-wrapper[data-v-
|
|
1
|
+
.input-wrapper[data-v-287eefaf]{--icon-default-size: 44px}.invalid-bg[data-v-287eefaf]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-287eefaf]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-287eefaf],.valid-bg[data-v-287eefaf]{background-position:top 17px right 12px;background-size:20px}.has-right-icon[data-v-287eefaf]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-287eefaf]>label.inline-label{left:var(--icon-default-size)}[data-v-287eefaf] .text-input-icon{position:absolute;z-index:20;box-sizing:border-box;--icon-size-sm: 16px;--icon-size-md: 20px;--icon-size-lg: 25px}[data-v-287eefaf] .text-input-icon.left{left:5px}[data-v-287eefaf] .text-input-icon.right{right:5px}[data-v-287eefaf] .text-input-icon{--icon-top: 5px;--icon-size: var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-287eefaf] .text-input-icon.md{--icon-size: var(--icon-size-md)}[data-v-287eefaf] .text-input-icon.lg{--icon-top: 0;--icon-size: var(--icon-size-lg)}.under-label[data-v-287eefaf]{left:4px;font-style:italic}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,4 +37,5 @@ import SwiperCarousel from './components/carousel/SwiperCarousel.vue';
|
|
|
37
37
|
import SwiperSlide from './components/carousel/SwiperSlide.vue';
|
|
38
38
|
import { useValidator } from './composables/useValidator';
|
|
39
39
|
export type { ChartOptions, ChartData } from "chart.js";
|
|
40
|
+
export { twBtnComponent } from "./UIKit/TailwindComponents/twBtnComponent";
|
|
40
41
|
export { DoughnutChart, LineChart, BaseAccordion, BaseAccordionBtn, BaseAccordionContent, BaseAccordionItem, SelectItem, BaseAlert, BaseAutocomplete, BaseBadge, BaseButton, AccessibleSelect, BaseComplexToggle, BaseDropDown, BaseFloatingLabel, BaseCard, BaseIcon, BaseInput, BaseNavItem, BasePagination, BasePaper, BaseSlider, BaseTab, BaseTextarea, BaseToggle, BaseTooltip, BaseUploadFile, CheckboxBtn, CheckboxGroup, RadioButton, RadioGroup, SwiperCarousel, SwiperSlide, IntersectionObservable, IntersectionObserver, useValidator, BaseModal, BaseSnackbar, };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './assets/index.css';
|
|
2
|
-
import { _ as
|
|
2
|
+
import { _ as r } from "./chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.CoE2D2rV.js";
|
|
3
3
|
import { _ as t } from "./chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.CrVwjQqr.js";
|
|
4
4
|
import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.8ErZghvk.js";
|
|
5
5
|
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.cWFIcTGL.js";
|
|
6
6
|
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.Colhxc7n.js";
|
|
7
7
|
import { default as d } from "./CheckboxBtn.js";
|
|
8
|
-
import { _ as
|
|
8
|
+
import { _ as u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js";
|
|
9
9
|
import { _ as i } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
|
|
10
10
|
import { _ as b } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.C-jm5z4e.js";
|
|
11
|
-
import { _ as
|
|
11
|
+
import { _ as g } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.5pqk7vlZ.js";
|
|
12
12
|
import { _ as I } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
|
|
13
13
|
import { _ as h } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Bl0xZfUY.js";
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
14
|
+
import { _ as w } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
|
|
15
|
+
import { _ as v } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BrJbAMJ8.js";
|
|
16
16
|
import { _ as F } from "./chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js";
|
|
17
17
|
import { default as L } from "./BaseComplexToggle.js";
|
|
18
18
|
import { _ as P } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.XCCbfFor.js";
|
|
@@ -26,27 +26,28 @@ import { default as Q } from "./BaseSlider.js";
|
|
|
26
26
|
import { default as X } from "./BaseTab.js";
|
|
27
27
|
import { default as Z } from "./BaseTextarea.js";
|
|
28
28
|
import { default as ee } from "./BaseToggle.js";
|
|
29
|
-
import { default as
|
|
29
|
+
import { default as re } from "./BaseTooltip.js";
|
|
30
30
|
import { _ as te } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.1Uo4HnFM.js";
|
|
31
31
|
import { default as fe } from "./BaseModal.js";
|
|
32
32
|
import { default as me } from "./BaseSnackbar.js";
|
|
33
33
|
import { _ as le } from "./chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js";
|
|
34
34
|
import { _ as de } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.D1HsyTJq.js";
|
|
35
|
-
import { _ as
|
|
35
|
+
import { _ as ue } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
|
|
36
36
|
import { _ as ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
|
|
37
37
|
import { _ as be } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.CBBHq8Cf.js";
|
|
38
|
-
import { default as
|
|
38
|
+
import { default as ge } from "./SwiperSlide.js";
|
|
39
39
|
import { useValidator as Ie } from "./useValidator.js";
|
|
40
|
+
import { twBtnComponent as he } from "./twBtnComponent.js";
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
g as AccessibleSelect,
|
|
43
|
+
r as BaseAccordion,
|
|
43
44
|
t as BaseAccordionBtn,
|
|
44
45
|
f as BaseAccordionContent,
|
|
45
46
|
m as BaseAccordionItem,
|
|
46
47
|
I as BaseAlert,
|
|
47
48
|
h as BaseAutocomplete,
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
w as BaseBadge,
|
|
50
|
+
v as BaseButton,
|
|
50
51
|
F as BaseCard,
|
|
51
52
|
L as BaseComplexToggle,
|
|
52
53
|
P as BaseDropDown,
|
|
@@ -62,18 +63,19 @@ export {
|
|
|
62
63
|
X as BaseTab,
|
|
63
64
|
Z as BaseTextarea,
|
|
64
65
|
ee as BaseToggle,
|
|
65
|
-
|
|
66
|
+
re as BaseTooltip,
|
|
66
67
|
te as BaseUploadFile,
|
|
67
68
|
d as CheckboxBtn,
|
|
68
|
-
|
|
69
|
+
u as CheckboxGroup,
|
|
69
70
|
le as DoughnutChart,
|
|
70
|
-
|
|
71
|
+
ue as IntersectionObservable,
|
|
71
72
|
ie as IntersectionObserver,
|
|
72
73
|
de as LineChart,
|
|
73
74
|
i as RadioButton,
|
|
74
75
|
b as RadioGroup,
|
|
75
76
|
l as SelectItem,
|
|
76
77
|
be as SwiperCarousel,
|
|
77
|
-
|
|
78
|
+
ge as SwiperSlide,
|
|
79
|
+
he as twBtnComponent,
|
|
78
80
|
Ie as useValidator
|
|
79
81
|
};
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
function s(r) {
|
|
2
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
3
|
+
}
|
|
4
|
+
var a = {}, d = {};
|
|
5
|
+
(function(r) {
|
|
6
|
+
Object.defineProperty(r, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(r, "default", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return l;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
function o(n, t) {
|
|
15
|
+
return {
|
|
16
|
+
handler: n,
|
|
17
|
+
config: t
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
o.withOptions = function(n, t = () => ({})) {
|
|
21
|
+
const i = function(c) {
|
|
22
|
+
return {
|
|
23
|
+
__options: c,
|
|
24
|
+
handler: n(c),
|
|
25
|
+
config: t(c)
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
return i.__isOptionsFunction = !0, i.__pluginFunction = n, i.__configFunction = t, i;
|
|
29
|
+
};
|
|
30
|
+
const l = o;
|
|
31
|
+
})(d);
|
|
32
|
+
(function(r) {
|
|
33
|
+
Object.defineProperty(r, "__esModule", {
|
|
34
|
+
value: !0
|
|
35
|
+
}), Object.defineProperty(r, "default", {
|
|
36
|
+
enumerable: !0,
|
|
37
|
+
get: function() {
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const o = /* @__PURE__ */ l(d);
|
|
42
|
+
function l(t) {
|
|
43
|
+
return t && t.__esModule ? t : {
|
|
44
|
+
default: t
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const n = o.default;
|
|
48
|
+
})(a);
|
|
49
|
+
let b = a;
|
|
50
|
+
var g = (b.__esModule ? b : { default: b }).default;
|
|
51
|
+
const v = /* @__PURE__ */ s(g), u = v(({ addComponents: r, theme: o }) => {
|
|
52
|
+
r({
|
|
53
|
+
".btn": {
|
|
54
|
+
"--btn-px": "25px",
|
|
55
|
+
"--btn-py": "11px",
|
|
56
|
+
"--btn-bg-color": "transparent",
|
|
57
|
+
"--btn-text-color": o("colors.w-black"),
|
|
58
|
+
"--btn-border-color": "unset",
|
|
59
|
+
"--btn-border-width": "0",
|
|
60
|
+
"--btn-border-radius": o("borderRadius.lg"),
|
|
61
|
+
"--btn-border-style": "solid",
|
|
62
|
+
"--btn-height": "42px",
|
|
63
|
+
"--btn-min-w": "90px",
|
|
64
|
+
"--btn-font-size": o("fontSize.DEFAULT"),
|
|
65
|
+
"--btn-transition": "color, background-color cubic-bezier(0.4, 0, 0.2, 1) 150ms",
|
|
66
|
+
display: "inline-block",
|
|
67
|
+
"font-size": "var(--btn-font-size)",
|
|
68
|
+
"font-weight": o("fontWeight.semibold"),
|
|
69
|
+
"white-space": "nowrap",
|
|
70
|
+
border: "var(--btn-border-width) var(--btn-border-color) var(--btn-border-style)",
|
|
71
|
+
"border-radius": "var(--btn-border-radius)",
|
|
72
|
+
cursor: "pointer",
|
|
73
|
+
height: "var(--btn-height)",
|
|
74
|
+
"min-width": "var(--btn-min-w)",
|
|
75
|
+
"background-color": "var(--btn-bg-color)",
|
|
76
|
+
color: "var(--btn-text-color)",
|
|
77
|
+
padding: "var(--btn-py) var(--btn-px)",
|
|
78
|
+
transition: "var(--btn-transition)",
|
|
79
|
+
"line-height": "1",
|
|
80
|
+
"-webkit-tap-highlight-color": "transparent",
|
|
81
|
+
"&:disabled": {
|
|
82
|
+
"--btn-bg-color": o("colors.w-primary"),
|
|
83
|
+
"--btn-text-color": "rgb(255 255 255 / 0.8)",
|
|
84
|
+
cursor: "not-allowed",
|
|
85
|
+
opacity: "0.5"
|
|
86
|
+
},
|
|
87
|
+
"&.btn-lg": {
|
|
88
|
+
"--btn-height": "47px",
|
|
89
|
+
"--btn-px": "28px",
|
|
90
|
+
"--btn-py": "12px",
|
|
91
|
+
"line-height": "0"
|
|
92
|
+
},
|
|
93
|
+
"&.btn-md": {
|
|
94
|
+
"--btn-height": "42px"
|
|
95
|
+
},
|
|
96
|
+
"&.btn-sm": {
|
|
97
|
+
"--btn-px": "18px",
|
|
98
|
+
"--btn-py": "8px",
|
|
99
|
+
"--btn-height": "36px"
|
|
100
|
+
},
|
|
101
|
+
"&.btn-outline": {
|
|
102
|
+
"--btn-border-width": "1px",
|
|
103
|
+
"--btn-bg-color": o("colors.white"),
|
|
104
|
+
[`@media screen and (max-width: ${o("screens.sm")})`]: {
|
|
105
|
+
"&:hover": {
|
|
106
|
+
"--btn-bg-color": o("colors.white")
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
[`@media screen and (min-width: ${o("screens.sm")})`]: {
|
|
110
|
+
"&:hover": {
|
|
111
|
+
"--btn-text-color": o("colors.white"),
|
|
112
|
+
"& svg, & img": {
|
|
113
|
+
filter: "brightness(0) invert(1)"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"&:active": {
|
|
118
|
+
"--btn-text-color": o("colors.white") + " !important",
|
|
119
|
+
"& svg, & img": {
|
|
120
|
+
filter: "brightness(0) invert(1)"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
".btn-empty": {
|
|
126
|
+
"--btn-min-w": "0"
|
|
127
|
+
},
|
|
128
|
+
".btn-w-primary": e(
|
|
129
|
+
o("screens.sm"),
|
|
130
|
+
{
|
|
131
|
+
bgColor: o("colors.w-primary"),
|
|
132
|
+
textColor: o("colors.white"),
|
|
133
|
+
hoverBgColor: "#0057D9",
|
|
134
|
+
hoverDisabledBgColor: o("colors.w-primary")
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
mainColor: o("colors.w-primary")
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
".btn-light": e(o("screens.sm"), {
|
|
141
|
+
textColor: o("colors.w-primary"),
|
|
142
|
+
bgColor: o("colors.white"),
|
|
143
|
+
hoverTextColor: o("colors.w-primary"),
|
|
144
|
+
hoverBgColor: "#FAFAFA",
|
|
145
|
+
hoverDisabledBgColor: o("colors.white")
|
|
146
|
+
}),
|
|
147
|
+
".btn-w-secondary": e(
|
|
148
|
+
o("screens.sm"),
|
|
149
|
+
{
|
|
150
|
+
bgColor: o("colors.w-secondary"),
|
|
151
|
+
textColor: o("colors.white"),
|
|
152
|
+
hoverBgColor: "#8A9DDD",
|
|
153
|
+
hoverDisabledBgColor: o("colors.w-secondary")
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
mainColor: o("colors.w-secondary"),
|
|
157
|
+
textColor: o("colors.w-black")
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
".btn-w-warning": e(o("screens.sm"), {
|
|
161
|
+
bgColor: o("colors.w-warning"),
|
|
162
|
+
textColor: "#2A3761",
|
|
163
|
+
hoverBgColor: "#F2C761",
|
|
164
|
+
hoverDisabledBgColor: o("colors.w-warning")
|
|
165
|
+
}),
|
|
166
|
+
".btn-w-danger": e(
|
|
167
|
+
o("screens.sm"),
|
|
168
|
+
{
|
|
169
|
+
bgColor: o("colors.w-danger"),
|
|
170
|
+
textColor: o("colors.white"),
|
|
171
|
+
hoverBgColor: "#E0485A",
|
|
172
|
+
hoverDisabledBgColor: o("colors.w-danger")
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
mainColor: o("colors.w-danger")
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
".btn-multi-selection, .btn-single-selection": {
|
|
179
|
+
"&[data-active='true']": {
|
|
180
|
+
"--btn-bg-color": o("colors.w-lavender"),
|
|
181
|
+
"--btn-border-color": "#385CF6",
|
|
182
|
+
"&:hover": {
|
|
183
|
+
"--btn-text-color": o("colors.w-black")
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
".btn-multi-selection": {
|
|
188
|
+
"--btn-py": "10px",
|
|
189
|
+
"--btn-height": "40px",
|
|
190
|
+
"font-weight": o("fontWeight.regular"),
|
|
191
|
+
"--btn-border-radius": o("borderRadius.xs"),
|
|
192
|
+
"--btn-border-color": "#EAEFFD",
|
|
193
|
+
"--btn-border-width": "1px",
|
|
194
|
+
"white-space": "normal",
|
|
195
|
+
...e(o("screens.sm"), {
|
|
196
|
+
textColor: o("colors.w-black"),
|
|
197
|
+
bgColor: "#F5F7FA",
|
|
198
|
+
hoverBgColor: o("colors.w-lavender"),
|
|
199
|
+
hoverDisabledBgColor: o("colors.white"),
|
|
200
|
+
hoverBorderColor: "#385CF6"
|
|
201
|
+
})
|
|
202
|
+
},
|
|
203
|
+
".btn-single-selection": {
|
|
204
|
+
"--btn-px": "16px",
|
|
205
|
+
"--btn-py": "8px",
|
|
206
|
+
"--btn-height": "40px",
|
|
207
|
+
"--btn-border-radius": "5px",
|
|
208
|
+
"font-weight": o("fontWeight.regular"),
|
|
209
|
+
...e(o("screens.sm"), {
|
|
210
|
+
textColor: o("colors.w-black"),
|
|
211
|
+
bgColor: o("colors.white"),
|
|
212
|
+
hoverBgColor: o("colors.w-cultured"),
|
|
213
|
+
hoverDisabledBgColor: o("colors.white")
|
|
214
|
+
})
|
|
215
|
+
},
|
|
216
|
+
".btn-facile": {
|
|
217
|
+
"--btn-facile-color": "#FF6600",
|
|
218
|
+
"--btn-facile-hover-color": "#b34700",
|
|
219
|
+
...e(o("screens.sm"), {
|
|
220
|
+
bgColor: "var(--btn-facile-color)",
|
|
221
|
+
textColor: o("colors.white"),
|
|
222
|
+
hoverBgColor: "var(--btn-facile-hover-color)",
|
|
223
|
+
hoverTextColor: o("colors.white"),
|
|
224
|
+
hoverDisabledBgColor: "var(--btn-facile-color)"
|
|
225
|
+
})
|
|
226
|
+
},
|
|
227
|
+
".btn-show-more": {
|
|
228
|
+
"--btn-border-radius": "0",
|
|
229
|
+
"--btn-border-color": o("colors.white"),
|
|
230
|
+
...e(o("screens.sm"), {
|
|
231
|
+
textColor: "#2B5DFF",
|
|
232
|
+
bgColor: o("colors.white"),
|
|
233
|
+
hoverTextColor: "#3646B3",
|
|
234
|
+
hoverBgColor: o("colors.white"),
|
|
235
|
+
hoverDisabledBgColor: o("colors.white")
|
|
236
|
+
})
|
|
237
|
+
},
|
|
238
|
+
".btn-transparent": {
|
|
239
|
+
"--border-color": "transparent",
|
|
240
|
+
"--btn-px": "0",
|
|
241
|
+
"--btn-py": "0",
|
|
242
|
+
"&:hover": {
|
|
243
|
+
"--btn-bg-color": "transparent",
|
|
244
|
+
"--border-color": "transparent"
|
|
245
|
+
},
|
|
246
|
+
"&:disabled": {
|
|
247
|
+
"--btn-bg-color": "transparent"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}), e = (r, o, l) => ({
|
|
252
|
+
"--btn-bg-color": o.bgColor,
|
|
253
|
+
"--btn-text-color": o.textColor,
|
|
254
|
+
[`@media screen and (max-width: ${r})`]: {
|
|
255
|
+
"&:hover": {
|
|
256
|
+
"--btn-bg-color": o.hoverMobileBgColor ?? o.bgColor,
|
|
257
|
+
"--btn-text-color": o.hoverMobileTextColor ?? o.textColor
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
[`@media screen and (min-width: ${r})`]: {
|
|
261
|
+
"&:hover": {
|
|
262
|
+
"--btn-bg-color": o.hoverBgColor,
|
|
263
|
+
...o.hoverTextColor ? { "--btn-text-color": o.hoverTextColor } : {},
|
|
264
|
+
...o.hoverBorderColor ? { "--btn-border-color": o.hoverBorderColor } : {}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"&:hover": {
|
|
268
|
+
"&:disabled": {
|
|
269
|
+
"--btn-bg-color": o.hoverDisabledBgColor
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"&:active": {
|
|
273
|
+
"--btn-bg-color": o.activeBgColor ?? o.hoverBgColor,
|
|
274
|
+
"--btn-text-color": o.activeTextColor ?? o.hoverTextColor,
|
|
275
|
+
...o.activeBorderColor || o.hoverBorderColor ? {
|
|
276
|
+
"--btn-border-color": o.activeBorderColor ?? o.hoverBorderColor
|
|
277
|
+
} : {}
|
|
278
|
+
},
|
|
279
|
+
...l ? {
|
|
280
|
+
"&.btn-outline": C(
|
|
281
|
+
l,
|
|
282
|
+
r
|
|
283
|
+
)
|
|
284
|
+
} : {}
|
|
285
|
+
}), C = (r, o) => ({
|
|
286
|
+
"--btn-border-color": r.mainColor ?? r.borderColor,
|
|
287
|
+
"--btn-text-color": r.mainColor && !r.textColor ? r.mainColor : r.textColor,
|
|
288
|
+
//By default, the active section is the same of the hover section in desktop mode
|
|
289
|
+
"&:active": {
|
|
290
|
+
"--btn-bg-color": (r.mainColor ?? r.activeBgColor ?? r.hoverBgColor) + " !important",
|
|
291
|
+
//By default, on active the text is white
|
|
292
|
+
...r.activeTextColor || r.hoverTextColor ? {
|
|
293
|
+
"--btn-text-color": r.activeTextColor ?? r.hoverTextColor
|
|
294
|
+
} : {}
|
|
295
|
+
},
|
|
296
|
+
"&:disabled": {
|
|
297
|
+
"&:hover": {
|
|
298
|
+
"--btn-bg-color": r.mainColor ?? r.hoverDisabledBgColor
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
[`@media screen and (max-width: ${o})`]: {
|
|
302
|
+
"&:hover": {
|
|
303
|
+
//By default, the text color is white
|
|
304
|
+
...r.hoverMobileBgColor ? { "--btn-bg-color": r.hoverMobileBgColor } : {},
|
|
305
|
+
"--btn-text-color": r.hoverMobileTextColor ?? r.textColor
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
[`@media screen and (min-width: ${o})`]: {
|
|
309
|
+
"&:hover": {
|
|
310
|
+
"--btn-bg-color": r.mainColor ?? r.hoverBgColor,
|
|
311
|
+
//By default, the text color is white when hovering
|
|
312
|
+
...r.hoverTextColor ? { "--btn-text-color": r.hoverTextColor } : {}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
export {
|
|
317
|
+
u as twBtnComponent
|
|
318
|
+
};
|