@wikicasa-dev/components 2.0.7 → 2.0.9
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/AccessibleSelect.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseFloatingLabel.js +21 -19
- package/dist/BaseInput.js +107 -101
- package/dist/BasePagination.js +1 -1
- package/dist/BaseTextarea.js +13 -12
- package/dist/UIKit/AccessibleSelect.vue.d.ts +22 -74
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +29 -39
- package/dist/UIKit/BaseBadge.vue.d.ts +3 -3
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +6 -5
- package/dist/UIKit/BaseInput.vue.d.ts +11 -14
- package/dist/UIKit/BaseSlider.vue.d.ts +25 -34
- package/dist/UIKit/BaseTextarea.vue.d.ts +3 -6
- package/dist/UIKit/types.d.ts +3 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.CfwgKf93.js +233 -0
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.i1drmEOH.js} +83 -82
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js → BasePagination.vue_vue_type_script_setup_true_lang.C_KW3jtP.js} +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -2
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js +0 -231
package/dist/AccessibleSelect.js
CHANGED
package/dist/BaseAutocomplete.js
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import './assets/BaseFloatingLabel.css';const
|
|
1
|
+
import { defineComponent as n, openBlock as l, createElementBlock as s, normalizeClass as t, withModifiers as r, createElementVNode as d, createCommentVNode as u } from "vue";
|
|
2
|
+
import { _ as k } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
+
import './assets/BaseFloatingLabel.css';const b = ["for"], m = ["innerHTML"], p = /* @__PURE__ */ n({
|
|
4
4
|
__name: "BaseFloatingLabel",
|
|
5
5
|
props: {
|
|
6
6
|
labelState: { default: "inline-label" },
|
|
7
7
|
isValid: { default: null },
|
|
8
8
|
labelText: {},
|
|
9
|
-
disabled: { type: [String, Boolean], default: !1 }
|
|
9
|
+
disabled: { type: [String, Boolean], default: !1 },
|
|
10
|
+
labelClasses: {},
|
|
11
|
+
labelTextClasses: {}
|
|
10
12
|
},
|
|
11
13
|
emits: ["click"],
|
|
12
|
-
setup(
|
|
13
|
-
|
|
14
|
+
setup(f, { emit: a }) {
|
|
15
|
+
const o = a;
|
|
16
|
+
return (e, i) => (l(), s("label", {
|
|
14
17
|
for: e.$attrs.for,
|
|
15
|
-
class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [
|
|
16
|
-
|
|
17
|
-
{ "uikit-text-w-secondary": e.disabled },
|
|
18
|
-
e.$attrs["label-classes"]
|
|
19
|
-
]]),
|
|
20
|
-
onClick: i[0] || (i[0] = o((f) => e.$emit("click"), ["stop"]))
|
|
18
|
+
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]]),
|
|
19
|
+
onClick: i[0] || (i[0] = r((c) => o("click"), ["stop"]))
|
|
21
20
|
}, [
|
|
22
|
-
|
|
23
|
-
class: t(["uikit-text uikit-font-medium
|
|
21
|
+
d("span", {
|
|
22
|
+
class: t(["uikit-text uikit-font-medium", [
|
|
23
|
+
e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
|
|
24
|
+
e.labelTextClasses
|
|
25
|
+
]]),
|
|
24
26
|
innerHTML: e.labelText
|
|
25
|
-
}, null, 10,
|
|
26
|
-
e.$attrs.required ? (l(),
|
|
27
|
+
}, null, 10, m),
|
|
28
|
+
e.$attrs.required ? (l(), s("sup", {
|
|
27
29
|
key: 0,
|
|
28
30
|
class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
|
|
29
31
|
{ "uikit-text-w-secondary": e.disabled },
|
|
30
32
|
{ "uikit-text-w-danger": e.isValid === !1 },
|
|
31
33
|
{ "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
|
|
32
34
|
]])
|
|
33
|
-
}, " *", 2)) :
|
|
34
|
-
], 10,
|
|
35
|
+
}, " *", 2)) : u("", !0)
|
|
36
|
+
], 10, b));
|
|
35
37
|
}
|
|
36
|
-
}), y = /* @__PURE__ */
|
|
38
|
+
}), y = /* @__PURE__ */ k(p, [["__scopeId", "data-v-2b36371e"]]);
|
|
37
39
|
export {
|
|
38
40
|
y as default
|
|
39
41
|
};
|
package/dist/BaseInput.js
CHANGED
|
@@ -1,126 +1,131 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useFloatingLabel as
|
|
4
|
-
import { _ as
|
|
5
|
-
import './assets/BaseInput.css';const
|
|
1
|
+
import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, openBlock as u, createElementBlock as r, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, withModifiers as w, withKeys as O, createBlock as j, createCommentVNode as y, Fragment as T, renderList as B } from "vue";
|
|
2
|
+
import D from "./BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as G } from "./useFloatingLabel.js";
|
|
4
|
+
import { _ as J } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import './assets/BaseInput.css';const Q = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], W = { 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" }, X = ["innerHTML"], Y = ["innerHTML"], Z = ["innerHTML"], U = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "under-label uikit-absolute uikit-text-12"
|
|
8
|
-
},
|
|
8
|
+
}, x = /* @__PURE__ */ z({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseInput",
|
|
11
|
-
props: /* @__PURE__ */
|
|
12
|
-
inputClass: {
|
|
11
|
+
props: /* @__PURE__ */ C({
|
|
12
|
+
inputClass: {},
|
|
13
13
|
labelText: { default: "" },
|
|
14
14
|
feedback: {},
|
|
15
15
|
isValid: { default: null },
|
|
16
16
|
keepFloatingLabel: { type: Boolean, default: !1 },
|
|
17
|
-
formatter: { default: null }
|
|
17
|
+
formatter: { default: null },
|
|
18
|
+
labelClasses: {},
|
|
19
|
+
fieldsetClasses: {},
|
|
20
|
+
labelTextClasses: {},
|
|
21
|
+
withLeftIcon: { type: Boolean, default: () => {
|
|
22
|
+
} },
|
|
23
|
+
withRightIcon: { type: Boolean, default: () => {
|
|
24
|
+
} },
|
|
25
|
+
dataCy: {}
|
|
18
26
|
}, {
|
|
19
27
|
modelValue: { default: "" },
|
|
20
28
|
modelModifiers: {}
|
|
21
29
|
}),
|
|
22
|
-
emits: /* @__PURE__ */
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
labelState:
|
|
26
|
-
handleFocusIn:
|
|
27
|
-
handleFocusOut:
|
|
28
|
-
setInlineLabel:
|
|
29
|
-
setFloatingLabel:
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
if (!
|
|
34
|
-
return
|
|
35
|
-
const t = e.length ?
|
|
36
|
-
return i && (i.value = t),
|
|
37
|
-
},
|
|
38
|
-
if (i && (!
|
|
39
|
-
return
|
|
40
|
-
if (!i || !
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
I(
|
|
30
|
+
emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
|
|
31
|
+
setup(l, { expose: M, emit: E }) {
|
|
32
|
+
const o = A(l, "modelValue"), a = m(""), k = E, {
|
|
33
|
+
labelState: d,
|
|
34
|
+
handleFocusIn: H,
|
|
35
|
+
handleFocusOut: $,
|
|
36
|
+
setInlineLabel: I,
|
|
37
|
+
setFloatingLabel: V
|
|
38
|
+
} = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
|
|
39
|
+
l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
|
|
40
|
+
}, L = (e, i) => {
|
|
41
|
+
if (!l.formatter || !l.formatter.formatFn)
|
|
42
|
+
return a.value = e, "";
|
|
43
|
+
const t = e.length ? l.formatter.formatFn(e) : e;
|
|
44
|
+
return i && (i.value = t), a.value = t, t;
|
|
45
|
+
}, F = (e, i = !0) => {
|
|
46
|
+
if (i && (!l.formatter || !l.formatter.unFormatFn))
|
|
47
|
+
return o.value = e, "";
|
|
48
|
+
if (!i || !l.formatter || !l.formatter.unFormatFn) return;
|
|
49
|
+
const t = l.formatter.unFormatFn(e);
|
|
50
|
+
return o.value = t ?? "", t;
|
|
51
|
+
}, P = ({ target: e }) => {
|
|
52
|
+
const i = e, t = F(i.value);
|
|
53
|
+
L(
|
|
47
54
|
`${t}`,
|
|
48
|
-
t ===
|
|
55
|
+
t === o.value ? i : void 0
|
|
49
56
|
);
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
},
|
|
57
|
+
}, q = () => {
|
|
58
|
+
o.value = "", I();
|
|
59
|
+
}, K = () => {
|
|
53
60
|
n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
|
|
54
61
|
};
|
|
55
|
-
|
|
56
|
-
() =>
|
|
62
|
+
g(
|
|
63
|
+
() => l.feedback,
|
|
57
64
|
() => {
|
|
58
|
-
|
|
65
|
+
R();
|
|
59
66
|
},
|
|
60
67
|
{
|
|
61
68
|
immediate: !0
|
|
62
69
|
}
|
|
63
|
-
),
|
|
64
|
-
|
|
70
|
+
), g(
|
|
71
|
+
o,
|
|
65
72
|
(e) => {
|
|
66
|
-
|
|
73
|
+
L(
|
|
67
74
|
`${e}`,
|
|
68
|
-
|
|
69
|
-
),
|
|
75
|
+
F(`${e}`, !1) === e ? 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();
|
|
70
77
|
},
|
|
71
78
|
{
|
|
72
79
|
immediate: !0
|
|
73
80
|
}
|
|
74
|
-
),
|
|
75
|
-
() =>
|
|
81
|
+
), g(
|
|
82
|
+
() => l.keepFloatingLabel,
|
|
76
83
|
(e) => {
|
|
77
|
-
e ?
|
|
84
|
+
e ? V() : $(o.value);
|
|
78
85
|
}
|
|
79
86
|
);
|
|
80
|
-
const
|
|
81
|
-
return n.value =
|
|
87
|
+
const S = N();
|
|
88
|
+
return n.value = S.type || "text", M({
|
|
82
89
|
select: () => {
|
|
83
|
-
|
|
90
|
+
b.value?.select();
|
|
84
91
|
}
|
|
85
|
-
}), (e, i) => (
|
|
86
|
-
class:
|
|
92
|
+
}), (e, i) => (u(), r("div", {
|
|
93
|
+
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", [
|
|
87
94
|
e.$attrs.class,
|
|
88
95
|
{ "floating-label": e.labelText },
|
|
89
|
-
|
|
96
|
+
s(d) === "floating-label" ? "floating-state" : "inline-state",
|
|
90
97
|
{
|
|
91
|
-
"has-right-icon": e
|
|
98
|
+
"has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
92
99
|
},
|
|
93
100
|
{
|
|
94
|
-
"has-left-icon": e
|
|
101
|
+
"has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
95
102
|
},
|
|
96
103
|
{ "is-invalid": e.isValid === !1, "is-valid": e.isValid }
|
|
97
104
|
]])
|
|
98
105
|
}, [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
handleClean:
|
|
102
|
-
handleShowPasswd:
|
|
106
|
+
p(e.$slots, "leftIcon", {}, void 0, !0),
|
|
107
|
+
p(e.$slots, "righticon", {
|
|
108
|
+
handleClean: q,
|
|
109
|
+
handleShowPasswd: K,
|
|
103
110
|
curType: n.value
|
|
104
111
|
}, void 0, !0),
|
|
105
|
-
|
|
112
|
+
h("input", {
|
|
106
113
|
id: e.$attrs.id,
|
|
107
114
|
ref_key: "baseInputEl",
|
|
108
|
-
ref:
|
|
109
|
-
"data-cy": e
|
|
115
|
+
ref: b,
|
|
116
|
+
"data-cy": e.dataCy,
|
|
110
117
|
name: e.$attrs.name,
|
|
111
|
-
class:
|
|
112
|
-
{ "uikit-text-w-secondary": e.$attrs.disabled },
|
|
118
|
+
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", [
|
|
113
119
|
{
|
|
114
120
|
"is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
|
|
115
121
|
"is-valid valid-bg !uikit-pr-9": e.isValid
|
|
116
122
|
},
|
|
117
123
|
{
|
|
118
|
-
"uikit-pr-[42px]": e
|
|
124
|
+
"uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
|
|
119
125
|
},
|
|
120
126
|
{
|
|
121
|
-
"uikit-pl-[42px]": e
|
|
127
|
+
"uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
|
|
122
128
|
},
|
|
123
|
-
e.$attrs.disabled ? "uikit-bg-w-cultured" : "uikit-bg-white",
|
|
124
129
|
e.inputClass
|
|
125
130
|
]]),
|
|
126
131
|
autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
|
|
@@ -134,73 +139,74 @@ import './assets/BaseInput.css';const W = ["id", "data-cy", "name", "autocomplet
|
|
|
134
139
|
maxlength: e.$attrs.maxlength,
|
|
135
140
|
inputmode: e.$attrs.inputmode,
|
|
136
141
|
placeholder: e.$attrs.placeholder,
|
|
142
|
+
value: a.value,
|
|
137
143
|
onClick: i[0] || (i[0] = (t) => k("click", t)),
|
|
138
|
-
onFocusin: i[1] || (i[1] =
|
|
139
|
-
onFocusout: i[2] || (i[2] =
|
|
140
|
-
onInput:
|
|
141
|
-
value: l.value,
|
|
144
|
+
onFocusin: i[1] || (i[1] = w(() => e.labelText && s(H)(), ["stop"])),
|
|
145
|
+
onFocusout: i[2] || (i[2] = w((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
|
|
146
|
+
onInput: w(P, ["stop"]),
|
|
142
147
|
onKeydown: [
|
|
143
|
-
i[3] || (i[3] =
|
|
148
|
+
i[3] || (i[3] = O(() => k("keydownEnterPressed"), ["enter"])),
|
|
144
149
|
i[4] || (i[4] = (t) => k("keydown", t))
|
|
145
150
|
],
|
|
146
151
|
onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
|
|
147
|
-
}, null, 42,
|
|
148
|
-
|
|
149
|
-
class:
|
|
152
|
+
}, null, 42, Q),
|
|
153
|
+
h("fieldset", {
|
|
154
|
+
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", [
|
|
150
155
|
{
|
|
151
156
|
"is-invalid uikit-border-w-danger": e.isValid === !1,
|
|
152
157
|
"is-valid uikit-border-w-primary": e.isValid,
|
|
153
158
|
"uikit-border-w-secondary": e.isValid === null
|
|
154
159
|
},
|
|
155
160
|
{ "uikit-top-0": !e.labelText },
|
|
156
|
-
e
|
|
161
|
+
e.fieldsetClasses
|
|
157
162
|
]])
|
|
158
163
|
}, [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
class:
|
|
164
|
+
h("legend", W, [
|
|
165
|
+
h("span", {
|
|
166
|
+
class: v(["visible-label uikit-opacity-0", [
|
|
162
167
|
{ "uikit-mx-5px": e.labelText },
|
|
163
168
|
{
|
|
164
|
-
"uikit-visible uikit-inline-block":
|
|
169
|
+
"uikit-visible uikit-inline-block": s(d) === "floating-label"
|
|
165
170
|
},
|
|
166
171
|
{
|
|
167
|
-
"uikit-invisible uikit-hidden":
|
|
172
|
+
"uikit-invisible uikit-hidden": s(d) === "inline-label"
|
|
168
173
|
}
|
|
169
174
|
]]),
|
|
170
175
|
innerHTML: e.labelText
|
|
171
|
-
}, null, 10,
|
|
176
|
+
}, null, 10, X)
|
|
172
177
|
])
|
|
173
178
|
], 2),
|
|
174
|
-
e.labelText ? (
|
|
179
|
+
e.labelText ? (u(), j(D, {
|
|
175
180
|
key: 0,
|
|
176
181
|
for: e.$attrs.id,
|
|
177
182
|
"label-text": e.labelText,
|
|
178
|
-
"label-state":
|
|
183
|
+
"label-state": s(d),
|
|
179
184
|
"is-valid": e.isValid,
|
|
180
185
|
required: e.$attrs.required,
|
|
181
186
|
disabled: e.$attrs.disabled,
|
|
182
187
|
"label-classes": [
|
|
183
|
-
|
|
184
|
-
e
|
|
185
|
-
]
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
+
p(e.$slots, "feedback", {}, () => [
|
|
194
|
+
e.isValid === !1 ? (u(!0), r(T, { key: 0 }, B(f.value.invalid, (t, c) => (u(), r("div", {
|
|
195
|
+
key: `${e.$attrs.id}_invalid_${c}`,
|
|
190
196
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
|
|
191
197
|
innerHTML: t
|
|
192
|
-
}, null, 8,
|
|
193
|
-
key: `${e.$attrs.id}_valid_${
|
|
198
|
+
}, null, 8, Y))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, B(f.value.valid, (t, c) => (u(), r("div", {
|
|
199
|
+
key: `${e.$attrs.id}_valid_${c}`,
|
|
194
200
|
class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
|
|
195
201
|
innerHTML: t
|
|
196
|
-
}, null, 8,
|
|
202
|
+
}, null, 8, Z))), 128)) : y("", !0)
|
|
197
203
|
], !0),
|
|
198
|
-
e.$slots["under-label"] ? (
|
|
199
|
-
|
|
200
|
-
])) :
|
|
204
|
+
e.$slots["under-label"] ? (u(), r("div", U, [
|
|
205
|
+
p(e.$slots, "under-label", {}, void 0, !0)
|
|
206
|
+
])) : y("", !0)
|
|
201
207
|
], 2));
|
|
202
208
|
}
|
|
203
|
-
}),
|
|
209
|
+
}), ae = /* @__PURE__ */ J(x, [["__scopeId", "data-v-f62de9f5"]]);
|
|
204
210
|
export {
|
|
205
|
-
|
|
211
|
+
ae as default
|
|
206
212
|
};
|
package/dist/BasePagination.js
CHANGED
package/dist/BaseTextarea.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useFloatingLabel as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as h, mergeModels as f, useModel as x, ref as $, watch as L, openBlock as k, createElementBlock as b, normalizeClass as s, createElementVNode as o, unref as l, withModifiers as d, createCommentVNode as p, createVNode as M, nextTick as C } from "vue";
|
|
2
|
+
import F from "./BaseFloatingLabel.js";
|
|
3
|
+
import { useFloatingLabel as B } from "./useFloatingLabel.js";
|
|
4
|
+
import { _ as z } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
5
|
import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], H = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "uikit-visible uikit-float-none 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-duration-[50s] uikit-ease-out"
|
|
8
|
-
}, I = ["innerHTML"], q = ["innerHTML"], A = /* @__PURE__ */
|
|
8
|
+
}, I = ["innerHTML"], q = ["innerHTML"], A = /* @__PURE__ */ h({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "BaseTextarea",
|
|
11
11
|
props: /* @__PURE__ */ f({
|
|
12
12
|
labelText: { default: "" },
|
|
13
13
|
feedback: {},
|
|
14
14
|
isValid: { default: null },
|
|
15
|
-
resize: { type: Boolean, default: !1 }
|
|
15
|
+
resize: { type: Boolean, default: !1 },
|
|
16
|
+
labelClasses: {}
|
|
16
17
|
}, {
|
|
17
18
|
modelValue: { default: "" },
|
|
18
19
|
modelModifiers: {}
|
|
19
20
|
}),
|
|
20
21
|
emits: /* @__PURE__ */ f(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
|
|
21
22
|
setup(v, { expose: m, emit: c }) {
|
|
22
|
-
const r =
|
|
23
|
+
const r = x(v, "modelValue"), n = c, {
|
|
23
24
|
labelState: a,
|
|
24
25
|
handleFocusIn: w,
|
|
25
26
|
handleFocusOut: g,
|
|
26
27
|
setFloatingLabel: y,
|
|
27
28
|
setInlineLabel: V
|
|
28
|
-
} =
|
|
29
|
+
} = B(n), i = $(null);
|
|
29
30
|
L(
|
|
30
31
|
r,
|
|
31
32
|
(e) => {
|
|
@@ -44,7 +45,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
44
45
|
i.value && (i.value.value = "");
|
|
45
46
|
},
|
|
46
47
|
focusDisabledTextarea: () => {
|
|
47
|
-
i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"),
|
|
48
|
+
i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), C(() => {
|
|
48
49
|
i.value && i.value.focus();
|
|
49
50
|
}));
|
|
50
51
|
}
|
|
@@ -100,7 +101,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
100
101
|
}, null, 10, I)
|
|
101
102
|
])) : p("", !0)
|
|
102
103
|
], 2),
|
|
103
|
-
M(
|
|
104
|
+
M(F, {
|
|
104
105
|
for: e.$attrs.id,
|
|
105
106
|
"label-text": e.labelText,
|
|
106
107
|
"label-state": l(a),
|
|
@@ -108,7 +109,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
108
109
|
"is-valid": e.isValid,
|
|
109
110
|
"label-classes": [
|
|
110
111
|
l(a) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
|
|
111
|
-
e
|
|
112
|
+
e.labelClasses
|
|
112
113
|
]
|
|
113
114
|
}, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
|
|
114
115
|
], 2),
|
|
@@ -121,7 +122,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
|
|
|
121
122
|
}, null, 10, q)) : p("", !0)
|
|
122
123
|
], 2));
|
|
123
124
|
}
|
|
124
|
-
}), J = /* @__PURE__ */
|
|
125
|
+
}), J = /* @__PURE__ */ z(A, [["__scopeId", "data-v-4c1a3e1d"]]);
|
|
125
126
|
export {
|
|
126
127
|
J as default
|
|
127
128
|
};
|
|
@@ -1,53 +1,10 @@
|
|
|
1
1
|
import { AccessibleSelectOptions } from './types';
|
|
2
|
-
import { ClassType } from '@wikicasa-dev/types';
|
|
3
|
-
declare
|
|
4
|
-
slots: {
|
|
5
|
-
lefticon?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {
|
|
8
|
-
btnEl: HTMLButtonElement;
|
|
9
|
-
};
|
|
10
|
-
attrs: Partial<{}>;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
14
|
-
label?: string;
|
|
15
|
-
dropdownPosition?: "top" | "bottom";
|
|
16
|
-
namespace: string;
|
|
17
|
-
options: AccessibleSelectOptions[];
|
|
18
|
-
modelValue?: AccessibleSelectOptions;
|
|
19
|
-
isValid?: boolean | null;
|
|
20
|
-
feedback?: Partial<{
|
|
21
|
-
valid: string;
|
|
22
|
-
invalid: string;
|
|
23
|
-
}>;
|
|
24
|
-
/**
|
|
25
|
-
* If true, we will close the dropdown when we touch the body of the document
|
|
26
|
-
*/
|
|
27
|
-
closeOnBodyPressed?: boolean;
|
|
28
|
-
border?: boolean;
|
|
29
|
-
fieldsetClasses?: ClassType;
|
|
30
|
-
legendClasses?: ClassType;
|
|
31
|
-
dropdownClasses?: ClassType;
|
|
32
|
-
labelClasses?: ClassType;
|
|
33
|
-
btnClasses?: ClassType;
|
|
34
|
-
dropdownItemClasses?: ClassType;
|
|
35
|
-
btnTextClasses?: ClassType;
|
|
36
|
-
arrowIcon?: Partial<{
|
|
37
|
-
width: number;
|
|
38
|
-
height: number;
|
|
39
|
-
strokeColor: `#${string}`;
|
|
40
|
-
classes: ClassType;
|
|
41
|
-
}>;
|
|
42
|
-
dataCy?: string;
|
|
43
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
-
"update:modelValue": (args_0: AccessibleSelectOptions) => any;
|
|
45
|
-
}, string, import('vue').PublicProps, Readonly<{
|
|
2
|
+
import { ClassType, Optional } from '@wikicasa-dev/types';
|
|
3
|
+
declare let __VLS_typeProps: {
|
|
46
4
|
label?: string;
|
|
47
5
|
dropdownPosition?: "top" | "bottom";
|
|
48
|
-
namespace
|
|
6
|
+
namespace?: string;
|
|
49
7
|
options: AccessibleSelectOptions[];
|
|
50
|
-
modelValue?: AccessibleSelectOptions;
|
|
51
8
|
isValid?: boolean | null;
|
|
52
9
|
feedback?: Partial<{
|
|
53
10
|
valid: string;
|
|
@@ -72,34 +29,25 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
72
29
|
classes: ClassType;
|
|
73
30
|
}>;
|
|
74
31
|
dataCy?: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}>;
|
|
95
|
-
closeOnBodyPressed: boolean;
|
|
96
|
-
border: boolean;
|
|
97
|
-
fieldsetClasses: ClassType;
|
|
98
|
-
legendClasses: ClassType;
|
|
99
|
-
dropdownClasses: ClassType;
|
|
100
|
-
dropdownItemClasses: ClassType;
|
|
101
|
-
btnTextClasses: ClassType;
|
|
102
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_PublicProps = {
|
|
34
|
+
modelValue?: Optional<AccessibleSelectOptions>;
|
|
35
|
+
} & typeof __VLS_typeProps;
|
|
36
|
+
declare function __VLS_template(): {
|
|
37
|
+
slots: {
|
|
38
|
+
lefticon?(_: {}): any;
|
|
39
|
+
};
|
|
40
|
+
refs: {
|
|
41
|
+
btnEl: HTMLButtonElement;
|
|
42
|
+
};
|
|
43
|
+
attrs: Partial<{}>;
|
|
44
|
+
};
|
|
45
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
46
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
+
"update:modelValue": (modelValue: Optional<AccessibleSelectOptions>) => any;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
49
|
+
"onUpdate:modelValue"?: ((modelValue: Optional<AccessibleSelectOptions>) => any) | undefined;
|
|
50
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
103
51
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
104
52
|
export default _default;
|
|
105
53
|
type __VLS_WithTemplateSlots<T, S> = T & {
|