energy-components 1.1.2-beta.1 → 1.1.3
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/components/accordion.es.js +11 -11
- package/dist/components/button.es.js +10 -11
- package/dist/components/card.es.js +21 -9
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/datepicker.es.js +2008 -2008
- package/dist/components/dropdown.es.js +97 -97
- package/dist/components/{icon-svg-CEZ-L3iv.js → icon-svg-GoL3_ayS.js} +699 -665
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +29 -26
- package/dist/components/modal.es.js +28 -26
- package/dist/components/multiselect.es.js +2 -2
- package/dist/components/overlay.es.js +3 -3
- package/dist/components/persistentToast.es.js +8 -8
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/sidebar.es.js +11 -11
- package/dist/components/style/button.css +1 -1
- package/dist/components/style/card.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/tag.css +1 -1
- package/dist/components/style/textArea.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +27 -27
- package/dist/components/tag.es.js +1 -1
- package/dist/components/textArea.es.js +77 -75
- package/dist/components/textField.es.js +62 -59
- package/dist/components/tooltip.es.js +262 -259
- package/dist/energy-components.es.js +4600 -4542
- package/dist/energy-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +4 -4
- package/dist/types/src/components/buttons/button/button.vue.d.ts +11 -20
- package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +4 -4
- package/dist/types/src/components/content/accordion/accordion.vue.d.ts +20 -24
- package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +8 -15
- package/dist/types/src/components/content/card/card.vue.d.ts +26 -15
- package/dist/types/src/components/content/divider/divider.vue.d.ts +4 -4
- package/dist/types/src/components/content/tag/tag.vue.d.ts +4 -4
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +7 -4
- package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +7 -4
- package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +13 -19
- package/dist/types/src/components/icon-svg/icon-list.vue.d.ts +1 -1
- package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +4 -4
- package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +13 -20
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +26 -36
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +4 -4
- package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +13 -20
- package/dist/types/src/components/input/switch/switch.vue.d.ts +13 -19
- package/dist/types/src/components/input/text-area/text-area.vue.d.ts +16 -25
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +15 -23
- package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +16 -21
- package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +6 -6
- package/dist/types/src/components/navigation/link/link.vue.d.ts +11 -19
- package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +6 -6
- package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -27
- package/dist/types/src/components/overlay/modal/modal.vue.d.ts +92 -58
- package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +11 -18
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +19 -22
- package/dist/types/src/composables/breakpoints.d.ts +1 -1
- package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import { defineComponent as R, mergeModels as U, useModel as F, toRefs as G, computed as o, openBlock as
|
|
2
|
-
import { I as T } from "./icon-svg-
|
|
3
|
-
import { _ as
|
|
4
|
-
import './style/textArea.css';function y(
|
|
5
|
-
return
|
|
1
|
+
import { defineComponent as R, mergeModels as U, useModel as F, toRefs as G, computed as o, openBlock as s, createElementBlock as f, normalizeClass as h, createElementVNode as a, withDirectives as J, unref as e, vModelText as K, renderSlot as x, createBlock as M, mergeProps as I, toHandlers as q, createCommentVNode as i, createTextVNode as L, toDisplayString as u } from "vue";
|
|
2
|
+
import { I as T } from "./icon-svg-GoL3_ayS.js";
|
|
3
|
+
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import './style/textArea.css';function y(t, m = !0, d = !0) {
|
|
5
|
+
return m && !t.trim() ? (console.warn("Advertencia: El valor no puede estar vacío"), !1) : d && !/^[\w\-:]+$/.test(t) ? (console.warn("Advertencia: El valor contiene caracteres inválidos"), !1) : !0;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
/* @__PURE__ */ a("svg", {
|
|
9
|
-
width: "12",
|
|
10
|
-
height: "14",
|
|
11
|
-
viewBox: "0 0 12 14",
|
|
12
|
-
fill: "none",
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
14
|
-
}, [
|
|
15
|
-
/* @__PURE__ */ a("path", {
|
|
16
|
-
d: "M11 1V3C11 8.52285 6.52285 13 1 13V13",
|
|
17
|
-
"stroke-width": "1.2",
|
|
18
|
-
"stroke-linecap": "round"
|
|
19
|
-
})
|
|
20
|
-
])
|
|
21
|
-
], -1)), re = ["for"], ae = { key: 0 }, le = { key: 0 }, ne = { key: 1 }, oe = { key: 0 }, se = /* @__PURE__ */ R({
|
|
7
|
+
const Q = { class: "rds-e-textarea__container" }, W = { class: "rds-e-textarea__input-container" }, X = ["id", "name", "maxlength", "minlength", "rows", "disabled"], Y = ["for"], Z = { key: 0 }, ee = { key: 0 }, te = { key: 1 }, re = { key: 0 }, ae = /* @__PURE__ */ R({
|
|
22
8
|
__name: "text-area",
|
|
23
9
|
props: /* @__PURE__ */ U({
|
|
24
10
|
/**
|
|
@@ -27,8 +13,8 @@ const X = (e) => (O("data-v-a9a6a677"), e = e(), Q(), e), Y = { class: "rds-e-te
|
|
|
27
13
|
label: {
|
|
28
14
|
type: String,
|
|
29
15
|
required: !0,
|
|
30
|
-
validator(
|
|
31
|
-
return y(
|
|
16
|
+
validator(t) {
|
|
17
|
+
return y(t, !0, !0);
|
|
32
18
|
}
|
|
33
19
|
},
|
|
34
20
|
/**
|
|
@@ -37,8 +23,8 @@ const X = (e) => (O("data-v-a9a6a677"), e = e(), Q(), e), Y = { class: "rds-e-te
|
|
|
37
23
|
name: {
|
|
38
24
|
type: String,
|
|
39
25
|
required: !1,
|
|
40
|
-
validator(
|
|
41
|
-
return y(
|
|
26
|
+
validator(t) {
|
|
27
|
+
return y(t, !1, !0);
|
|
42
28
|
}
|
|
43
29
|
},
|
|
44
30
|
/**
|
|
@@ -47,8 +33,8 @@ const X = (e) => (O("data-v-a9a6a677"), e = e(), Q(), e), Y = { class: "rds-e-te
|
|
|
47
33
|
id: {
|
|
48
34
|
type: String,
|
|
49
35
|
required: !1,
|
|
50
|
-
validator(
|
|
51
|
-
return y(
|
|
36
|
+
validator(t) {
|
|
37
|
+
return y(t, !1, !0);
|
|
52
38
|
}
|
|
53
39
|
},
|
|
54
40
|
/**
|
|
@@ -149,25 +135,25 @@ const X = (e) => (O("data-v-a9a6a677"), e = e(), Q(), e), Y = { class: "rds-e-te
|
|
|
149
135
|
modelModifiers: {}
|
|
150
136
|
}),
|
|
151
137
|
emits: ["update:modelValue"],
|
|
152
|
-
setup(
|
|
153
|
-
const
|
|
138
|
+
setup(t) {
|
|
139
|
+
const m = t, d = F(t, "modelValue"), {
|
|
154
140
|
label: b,
|
|
155
141
|
id: w,
|
|
156
142
|
disabled: p,
|
|
157
143
|
maxlength: v,
|
|
158
|
-
minlength:
|
|
159
|
-
modelValue:
|
|
144
|
+
minlength: g,
|
|
145
|
+
modelValue: c,
|
|
160
146
|
icon: $,
|
|
161
|
-
rightIcon:
|
|
147
|
+
rightIcon: k,
|
|
162
148
|
helper: A,
|
|
163
149
|
error: _,
|
|
164
150
|
helperText: z,
|
|
165
|
-
clearable:
|
|
151
|
+
clearable: S,
|
|
166
152
|
lengthError: D
|
|
167
|
-
} = G(
|
|
153
|
+
} = G(m), V = o(() => c.value.length === v.value), B = o(() => c.value.length === 0 ? !1 : c.value.length < g.value), E = o(() => D.value && (V.value || B.value)), P = o(() => {
|
|
168
154
|
const r = [];
|
|
169
|
-
return
|
|
170
|
-
}),
|
|
155
|
+
return c.value && r.push("rds-e-textarea--filled"), _.value && r.push("rds-e-textarea--error"), p.value && r.push("rds-e-textarea--disabled"), E.value && r.push("rds-e-textarea--error"), r.join(" ");
|
|
156
|
+
}), l = o(() => {
|
|
171
157
|
const r = {
|
|
172
158
|
name: $.value,
|
|
173
159
|
class: "",
|
|
@@ -175,85 +161,101 @@ const X = (e) => (O("data-v-a9a6a677"), e = e(), Q(), e), Y = { class: "rds-e-te
|
|
|
175
161
|
click: () => {
|
|
176
162
|
}
|
|
177
163
|
}
|
|
178
|
-
},
|
|
164
|
+
}, n = {
|
|
179
165
|
left: { ...r },
|
|
180
|
-
right: { ...r, name:
|
|
166
|
+
right: { ...r, name: k.value }
|
|
181
167
|
};
|
|
182
|
-
return
|
|
168
|
+
return S.value && (n.right = {
|
|
183
169
|
...r,
|
|
184
170
|
name: "close",
|
|
185
171
|
class: "rds-e-textfield__icon--clear",
|
|
186
172
|
events: {
|
|
187
|
-
click: () =>
|
|
173
|
+
click: () => d.value = ""
|
|
188
174
|
}
|
|
189
|
-
}),
|
|
190
|
-
}), j = o(() =>
|
|
191
|
-
return (r,
|
|
192
|
-
var
|
|
193
|
-
return
|
|
194
|
-
class:
|
|
175
|
+
}), n;
|
|
176
|
+
}), j = o(() => c.value.length);
|
|
177
|
+
return (r, n) => {
|
|
178
|
+
var N, C;
|
|
179
|
+
return s(), f("div", {
|
|
180
|
+
class: h(["rds-e-textarea", P.value])
|
|
195
181
|
}, [
|
|
196
|
-
a("div",
|
|
197
|
-
a("div",
|
|
182
|
+
a("div", Q, [
|
|
183
|
+
a("div", W, [
|
|
198
184
|
J(a("textarea", {
|
|
199
|
-
id: (
|
|
200
|
-
"onUpdate:modelValue":
|
|
185
|
+
id: (N = e(w)) == null ? void 0 : N.toString(),
|
|
186
|
+
"onUpdate:modelValue": n[0] || (n[0] = (H) => d.value = H),
|
|
201
187
|
type: "text",
|
|
202
188
|
class: "rds-e-textarea__input",
|
|
203
|
-
name:
|
|
204
|
-
maxlength:
|
|
205
|
-
minlength:
|
|
206
|
-
rows:
|
|
207
|
-
disabled:
|
|
208
|
-
}, null, 8,
|
|
209
|
-
[K,
|
|
189
|
+
name: t.name,
|
|
190
|
+
maxlength: e(v),
|
|
191
|
+
minlength: e(g),
|
|
192
|
+
rows: t.rows,
|
|
193
|
+
disabled: e(p)
|
|
194
|
+
}, null, 8, X), [
|
|
195
|
+
[K, d.value]
|
|
210
196
|
]),
|
|
211
|
-
|
|
197
|
+
n[1] || (n[1] = a("div", { class: "rds-e-textarea__resize-handle" }, [
|
|
198
|
+
a("svg", {
|
|
199
|
+
width: "12",
|
|
200
|
+
height: "14",
|
|
201
|
+
viewBox: "0 0 12 14",
|
|
202
|
+
fill: "none",
|
|
203
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
204
|
+
}, [
|
|
205
|
+
a("path", {
|
|
206
|
+
d: "M11 1V3C11 8.52285 6.52285 13 1 13V13",
|
|
207
|
+
"stroke-width": "1.2",
|
|
208
|
+
"stroke-linecap": "round"
|
|
209
|
+
})
|
|
210
|
+
])
|
|
211
|
+
], -1)),
|
|
212
212
|
a("label", {
|
|
213
|
-
for: (
|
|
214
|
-
class: "rds-e-textarea__label"
|
|
213
|
+
for: (C = e(w)) == null ? void 0 : C.toString(),
|
|
214
|
+
class: h(["rds-e-textarea__label", {
|
|
215
|
+
"rds-e-textarea__label--with-icon": l.value.left.name
|
|
216
|
+
}])
|
|
215
217
|
}, [
|
|
216
218
|
x(r.$slots, "left-icon", {}, () => [
|
|
217
|
-
|
|
219
|
+
l.value.left.name ? (s(), M(T, I({
|
|
218
220
|
key: 0,
|
|
219
221
|
class: "rds-e-textarea__icon rds-e-textarea__icon--left",
|
|
220
222
|
"aria-hidden": "true"
|
|
221
|
-
},
|
|
223
|
+
}, l.value.left, q(l.value.left.events)), null, 16)) : i("", !0)
|
|
222
224
|
], !0),
|
|
223
|
-
L(" " +
|
|
224
|
-
],
|
|
225
|
+
L(" " + u(e(b)), 1)
|
|
226
|
+
], 10, Y),
|
|
225
227
|
a("div", {
|
|
226
|
-
class:
|
|
227
|
-
"rds-e-textarea__counter--disabled":
|
|
228
|
-
"rds-e-textarea__counter--clearable":
|
|
228
|
+
class: h(["rds-e-textarea__counter", {
|
|
229
|
+
"rds-e-textarea__counter--disabled": e(p),
|
|
230
|
+
"rds-e-textarea__counter--clearable": e(S)
|
|
229
231
|
}])
|
|
230
232
|
}, [
|
|
231
|
-
|
|
233
|
+
t.counter && !e(k) ? (s(), f("p", Z, u(j.value) + "/" + u(e(v)), 1)) : i("", !0),
|
|
232
234
|
x(r.$slots, "right-icon", {}, () => [
|
|
233
|
-
|
|
235
|
+
l.value.right.name && !l.value.left.name ? (s(), M(T, I({
|
|
234
236
|
key: 0,
|
|
235
237
|
class: "rds-e-textarea__icon rds-e-textarea__icon--right",
|
|
236
238
|
"aria-hidden": "true"
|
|
237
|
-
},
|
|
239
|
+
}, l.value.right, q(l.value.right.events)), null, 16)) : i("", !0)
|
|
238
240
|
], !0)
|
|
239
241
|
], 2)
|
|
240
242
|
])
|
|
241
243
|
]),
|
|
242
244
|
a("ul", {
|
|
243
|
-
class:
|
|
245
|
+
class: h(["rds-e-textarea__helper", e(_) || E.value ? "rds-e-textarea__helper--error" : ""])
|
|
244
246
|
}, [
|
|
245
|
-
V.value ? (
|
|
246
|
-
B.value ? (
|
|
247
|
+
V.value ? (s(), f("li", ee, " Max text length is " + u(e(v)), 1)) : i("", !0),
|
|
248
|
+
B.value ? (s(), f("li", te, " Min text length is " + u(e(g)), 1)) : i("", !0),
|
|
247
249
|
a("li", null, [
|
|
248
250
|
x(r.$slots, "helper-text", {}, () => [
|
|
249
|
-
|
|
251
|
+
e(A) || e(_) ? (s(), f("span", re, u(e(z)), 1)) : i("", !0)
|
|
250
252
|
], !0)
|
|
251
253
|
])
|
|
252
254
|
], 2)
|
|
253
255
|
], 2);
|
|
254
256
|
};
|
|
255
257
|
}
|
|
256
|
-
}),
|
|
258
|
+
}), oe = /* @__PURE__ */ O(ae, [["__scopeId", "data-v-51c6b51e"]]);
|
|
257
259
|
export {
|
|
258
|
-
|
|
260
|
+
oe as default
|
|
259
261
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { g as
|
|
3
|
-
import { I as
|
|
4
|
-
import { _ as
|
|
5
|
-
import './style/textField.css';const
|
|
1
|
+
import { defineComponent as H, toRefs as M, ref as L, computed as s, watch as U, openBlock as u, createElementBlock as v, normalizeClass as h, createElementVNode as i, renderSlot as _, createBlock as A, mergeProps as S, toHandlers as G, createCommentVNode as g, unref as t, toDisplayString as B, createVNode as J, withModifiers as K } from "vue";
|
|
2
|
+
import { g as O } from "./getInstance-GhoEcxLF.js";
|
|
3
|
+
import { I as V } from "./icon-svg-GoL3_ayS.js";
|
|
4
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import './style/textField.css';const W = { class: "rds-e-textfield__container" }, X = { class: "rds-e-textfield__input-container" }, Y = ["id", "type", "maxLength", "minLength", "disabled", "value", "autocomplete", "readonly"], Z = ["for"], ee = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "rds-e-textfield__icon rds-e-textfield__icon--right"
|
|
8
|
-
},
|
|
8
|
+
}, te = { class: "rds-e-textfield__helper" }, le = /* @__PURE__ */ H({
|
|
9
9
|
__name: "text-field",
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -125,46 +125,48 @@ import './style/textField.css';const O = { class: "rds-e-textfield__container" }
|
|
|
125
125
|
},
|
|
126
126
|
emits: ["update:modelValue"],
|
|
127
127
|
setup(l, { emit: c }) {
|
|
128
|
-
const a = l,
|
|
129
|
-
label:
|
|
128
|
+
const a = l, x = c, {
|
|
129
|
+
label: E,
|
|
130
130
|
disabled: d,
|
|
131
|
-
maxLength:
|
|
132
|
-
minLength:
|
|
131
|
+
maxLength: y,
|
|
132
|
+
minLength: b,
|
|
133
133
|
modelValue: o,
|
|
134
|
-
icon:
|
|
135
|
-
rightIcon:
|
|
136
|
-
helper:
|
|
134
|
+
icon: I,
|
|
135
|
+
rightIcon: T,
|
|
136
|
+
helper: $,
|
|
137
137
|
error: f,
|
|
138
|
-
helperText:
|
|
139
|
-
clearable:
|
|
138
|
+
helperText: C,
|
|
139
|
+
clearable: R,
|
|
140
140
|
password: p,
|
|
141
|
-
autocomplete:
|
|
142
|
-
} =
|
|
141
|
+
autocomplete: q
|
|
142
|
+
} = M(a), n = L(!0), m = L(!1), D = O(), N = s(() => a.id || `text-field-${D}`), F = s(() => {
|
|
143
143
|
if (p.value)
|
|
144
|
-
return
|
|
145
|
-
}),
|
|
146
|
-
|
|
144
|
+
return q.value;
|
|
145
|
+
}), k = (e) => {
|
|
146
|
+
m.value = !1, x(
|
|
147
147
|
"update:modelValue",
|
|
148
148
|
e.target.value
|
|
149
149
|
);
|
|
150
|
-
},
|
|
150
|
+
}, j = () => {
|
|
151
|
+
m.value = !0;
|
|
152
|
+
}, P = s(() => !!(f.value || o.value.length && (o.value.length < b.value || o.value.length > y.value))), z = s(() => {
|
|
151
153
|
const e = [];
|
|
152
|
-
return o.value && e.push("rds-e-textfield--filled"),
|
|
154
|
+
return o.value && e.push("rds-e-textfield--filled"), P.value && e.push("rds-e-textfield--error"), d.value && e.push("rds-e-textfield--disabled"), e.join(" ");
|
|
153
155
|
}), r = s(() => {
|
|
154
156
|
const e = {
|
|
155
|
-
name:
|
|
157
|
+
name: I.value,
|
|
156
158
|
class: "",
|
|
157
159
|
events: {
|
|
158
160
|
click: () => {
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
|
-
},
|
|
163
|
+
}, w = {
|
|
162
164
|
left: {
|
|
163
165
|
...e
|
|
164
166
|
},
|
|
165
167
|
right: {
|
|
166
168
|
...e,
|
|
167
|
-
name:
|
|
169
|
+
name: T.value
|
|
168
170
|
}
|
|
169
171
|
};
|
|
170
172
|
return p.value ? {
|
|
@@ -180,7 +182,7 @@ import './style/textField.css';const O = { class: "rds-e-textfield__container" }
|
|
|
180
182
|
click: () => n.value = !n.value
|
|
181
183
|
}
|
|
182
184
|
}
|
|
183
|
-
} :
|
|
185
|
+
} : R.value ? {
|
|
184
186
|
left: {
|
|
185
187
|
...e
|
|
186
188
|
},
|
|
@@ -189,67 +191,68 @@ import './style/textField.css';const O = { class: "rds-e-textfield__container" }
|
|
|
189
191
|
name: "close",
|
|
190
192
|
class: "rds-e-textfield__icon--clear",
|
|
191
193
|
events: {
|
|
192
|
-
click: () =>
|
|
194
|
+
click: () => x("update:modelValue", "")
|
|
193
195
|
}
|
|
194
196
|
}
|
|
195
|
-
} :
|
|
197
|
+
} : w;
|
|
196
198
|
});
|
|
197
|
-
return
|
|
199
|
+
return U(
|
|
198
200
|
p,
|
|
199
201
|
(e) => n.value = !e,
|
|
200
202
|
{ immediate: !0 }
|
|
201
|
-
), (e,
|
|
202
|
-
class:
|
|
203
|
+
), (e, w) => (u(), v("div", {
|
|
204
|
+
class: h(["rds-e-textfield", z.value])
|
|
203
205
|
}, [
|
|
204
|
-
i("div",
|
|
205
|
-
|
|
206
|
-
r.value.left.name ? (u(),
|
|
206
|
+
i("div", W, [
|
|
207
|
+
_(e.$slots, "left-icon", {}, () => [
|
|
208
|
+
r.value.left.name ? (u(), A(V, S({
|
|
207
209
|
key: 0,
|
|
208
|
-
class: "rds-e-textfield__icon rds-e-textfield__icon--left",
|
|
210
|
+
class: ["rds-e-textfield__icon rds-e-textfield__icon--left", { "rds-e-textfield__icon--hidden": m.value }],
|
|
209
211
|
"aria-hidden": "true"
|
|
210
|
-
}, r.value.left,
|
|
212
|
+
}, r.value.left, G(r.value.left.events)), null, 16, ["class"])) : g("", !0)
|
|
211
213
|
], !0),
|
|
212
|
-
i("div",
|
|
214
|
+
i("div", X, [
|
|
213
215
|
i("input", {
|
|
214
|
-
id:
|
|
216
|
+
id: N.value,
|
|
215
217
|
type: n.value ? "text" : "password",
|
|
216
218
|
class: "rds-e-textfield__input",
|
|
217
|
-
maxLength: t(
|
|
218
|
-
minLength: t(
|
|
219
|
+
maxLength: t(y),
|
|
220
|
+
minLength: t(b),
|
|
219
221
|
disabled: t(d),
|
|
220
222
|
value: t(o),
|
|
221
|
-
autocomplete:
|
|
223
|
+
autocomplete: F.value,
|
|
222
224
|
readonly: l.readonly,
|
|
223
|
-
onInput:
|
|
224
|
-
onBlur:
|
|
225
|
-
|
|
225
|
+
onInput: k,
|
|
226
|
+
onBlur: k,
|
|
227
|
+
onFocus: j
|
|
228
|
+
}, null, 40, Y),
|
|
226
229
|
i("label", {
|
|
227
|
-
for:
|
|
228
|
-
class:
|
|
229
|
-
},
|
|
230
|
+
for: N.value,
|
|
231
|
+
class: h(["rds-e-textfield__label", t(d) ? "rds-e-textfield__label--disabled" : ""])
|
|
232
|
+
}, B(t(E)), 11, Z)
|
|
230
233
|
]),
|
|
231
|
-
r.value.right.name || e.$slots["right-icon"] ? (u(),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
+
r.value.right.name || e.$slots["right-icon"] ? (u(), v("span", ee, [
|
|
235
|
+
_(e.$slots, "right-icon", {}, () => [
|
|
236
|
+
J(V, S({
|
|
234
237
|
"aria-hidden": "true",
|
|
235
238
|
class: "rds-e-textfield__icon rds-e-textfield__icon--right"
|
|
236
239
|
}, r.value.right, {
|
|
237
|
-
onClick:
|
|
240
|
+
onClick: K(r.value.right.events.click, ["stop"])
|
|
238
241
|
}), null, 16, ["onClick"])
|
|
239
242
|
], !0)
|
|
240
|
-
])) :
|
|
243
|
+
])) : g("", !0)
|
|
241
244
|
]),
|
|
242
|
-
i("div",
|
|
243
|
-
|
|
244
|
-
(t(
|
|
245
|
+
i("div", te, [
|
|
246
|
+
_(e.$slots, "helper-text", {}, () => [
|
|
247
|
+
(t($) || t(f)) && !t(d) ? (u(), v("span", {
|
|
245
248
|
key: 0,
|
|
246
|
-
class:
|
|
247
|
-
},
|
|
249
|
+
class: h(t(f) ? "rds-e-textfield__helper--error" : "")
|
|
250
|
+
}, B(t(C)), 3)) : g("", !0)
|
|
248
251
|
], !0)
|
|
249
252
|
])
|
|
250
253
|
], 2));
|
|
251
254
|
}
|
|
252
|
-
}),
|
|
255
|
+
}), se = /* @__PURE__ */ Q(le, [["__scopeId", "data-v-2a397de0"]]);
|
|
253
256
|
export {
|
|
254
|
-
|
|
257
|
+
se as default
|
|
255
258
|
};
|