energy-components 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.es.js +11 -11
- package/dist/components/button.es.js +1 -1
- 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 +50 -47
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +1 -1
- 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/quantitySelector.es.js +160 -0
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/sidebar.es.js +11 -11
- package/dist/components/style/breadcrumbs.css +1 -1
- 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/floatingActionButton.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/quantitySelector.css +1 -0
- 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 +75 -75
- package/dist/components/textField.es.js +11 -11
- package/dist/components/tooltip.es.js +255 -252
- package/dist/energy-components.es.js +4262 -4056
- 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 -18
- 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/index.d.ts +1 -0
- 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/quantity-selector/quantity-selector.vue.d.ts +93 -0
- 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 -17
- 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 m && !
|
|
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-51c6b51e"), 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-51c6b51e"), 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-51c6b51e"), 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,24 +135,24 @@ const X = (e) => (O("data-v-51c6b51e"), e = e(), Q(), e), Y = { class: "rds-e-te
|
|
|
149
135
|
modelModifiers: {}
|
|
150
136
|
}),
|
|
151
137
|
emits: ["update:modelValue"],
|
|
152
|
-
setup(
|
|
153
|
-
const m =
|
|
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
|
-
error:
|
|
149
|
+
error: _,
|
|
164
150
|
helperText: z,
|
|
165
|
-
clearable:
|
|
151
|
+
clearable: S,
|
|
166
152
|
lengthError: D
|
|
167
|
-
} = G(m), V = o(() =>
|
|
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
|
|
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(" ");
|
|
170
156
|
}), l = o(() => {
|
|
171
157
|
const r = {
|
|
172
158
|
name: $.value,
|
|
@@ -175,87 +161,101 @@ const X = (e) => (O("data-v-51c6b51e"), 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:
|
|
213
|
+
for: (C = e(w)) == null ? void 0 : C.toString(),
|
|
214
|
+
class: h(["rds-e-textarea__label", {
|
|
215
215
|
"rds-e-textarea__label--with-icon": l.value.left.name
|
|
216
216
|
}])
|
|
217
217
|
}, [
|
|
218
218
|
x(r.$slots, "left-icon", {}, () => [
|
|
219
|
-
l.value.left.name ? (
|
|
219
|
+
l.value.left.name ? (s(), M(T, I({
|
|
220
220
|
key: 0,
|
|
221
221
|
class: "rds-e-textarea__icon rds-e-textarea__icon--left",
|
|
222
222
|
"aria-hidden": "true"
|
|
223
|
-
}, l.value.left, q(l.value.left.events)), null, 16)) :
|
|
223
|
+
}, l.value.left, q(l.value.left.events)), null, 16)) : i("", !0)
|
|
224
224
|
], !0),
|
|
225
|
-
L(" " +
|
|
226
|
-
], 10,
|
|
225
|
+
L(" " + u(e(b)), 1)
|
|
226
|
+
], 10, Y),
|
|
227
227
|
a("div", {
|
|
228
|
-
class:
|
|
229
|
-
"rds-e-textarea__counter--disabled":
|
|
230
|
-
"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)
|
|
231
231
|
}])
|
|
232
232
|
}, [
|
|
233
|
-
|
|
233
|
+
t.counter && !e(k) ? (s(), f("p", Z, u(j.value) + "/" + u(e(v)), 1)) : i("", !0),
|
|
234
234
|
x(r.$slots, "right-icon", {}, () => [
|
|
235
|
-
l.value.right.name && !l.value.left.name ? (
|
|
235
|
+
l.value.right.name && !l.value.left.name ? (s(), M(T, I({
|
|
236
236
|
key: 0,
|
|
237
237
|
class: "rds-e-textarea__icon rds-e-textarea__icon--right",
|
|
238
238
|
"aria-hidden": "true"
|
|
239
|
-
}, l.value.right, q(l.value.right.events)), null, 16)) :
|
|
239
|
+
}, l.value.right, q(l.value.right.events)), null, 16)) : i("", !0)
|
|
240
240
|
], !0)
|
|
241
241
|
], 2)
|
|
242
242
|
])
|
|
243
243
|
]),
|
|
244
244
|
a("ul", {
|
|
245
|
-
class:
|
|
245
|
+
class: h(["rds-e-textarea__helper", e(_) || E.value ? "rds-e-textarea__helper--error" : ""])
|
|
246
246
|
}, [
|
|
247
|
-
V.value ? (
|
|
248
|
-
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),
|
|
249
249
|
a("li", null, [
|
|
250
250
|
x(r.$slots, "helper-text", {}, () => [
|
|
251
|
-
|
|
251
|
+
e(A) || e(_) ? (s(), f("span", re, u(e(z)), 1)) : i("", !0)
|
|
252
252
|
], !0)
|
|
253
253
|
])
|
|
254
254
|
], 2)
|
|
255
255
|
], 2);
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
}),
|
|
258
|
+
}), oe = /* @__PURE__ */ O(ae, [["__scopeId", "data-v-51c6b51e"]]);
|
|
259
259
|
export {
|
|
260
|
-
|
|
260
|
+
oe as default
|
|
261
261
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as H, toRefs as M, ref as L, computed as
|
|
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
2
|
import { g as O } from "./getInstance-GhoEcxLF.js";
|
|
3
|
-
import { I as V } from "./icon-svg-
|
|
3
|
+
import { I as V } from "./icon-svg-GoL3_ayS.js";
|
|
4
4
|
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
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,
|
|
@@ -139,7 +139,7 @@ import './style/textField.css';const W = { class: "rds-e-textfield__container" }
|
|
|
139
139
|
clearable: R,
|
|
140
140
|
password: p,
|
|
141
141
|
autocomplete: q
|
|
142
|
-
} = M(a),
|
|
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
144
|
return q.value;
|
|
145
145
|
}), k = (e) => {
|
|
@@ -149,10 +149,10 @@ import './style/textField.css';const W = { class: "rds-e-textfield__container" }
|
|
|
149
149
|
);
|
|
150
150
|
}, j = () => {
|
|
151
151
|
m.value = !0;
|
|
152
|
-
}, P =
|
|
152
|
+
}, P = s(() => !!(f.value || o.value.length && (o.value.length < b.value || o.value.length > y.value))), z = s(() => {
|
|
153
153
|
const e = [];
|
|
154
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(" ");
|
|
155
|
-
}), r =
|
|
155
|
+
}), r = s(() => {
|
|
156
156
|
const e = {
|
|
157
157
|
name: I.value,
|
|
158
158
|
class: "",
|
|
@@ -176,10 +176,10 @@ import './style/textField.css';const W = { class: "rds-e-textfield__container" }
|
|
|
176
176
|
},
|
|
177
177
|
right: {
|
|
178
178
|
...e,
|
|
179
|
-
name:
|
|
179
|
+
name: n.value ? "eye_open" : "eye_close",
|
|
180
180
|
class: "rds-e-textfield__icon--password",
|
|
181
181
|
events: {
|
|
182
|
-
click: () =>
|
|
182
|
+
click: () => n.value = !n.value
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
} : R.value ? {
|
|
@@ -198,7 +198,7 @@ import './style/textField.css';const W = { class: "rds-e-textfield__container" }
|
|
|
198
198
|
});
|
|
199
199
|
return U(
|
|
200
200
|
p,
|
|
201
|
-
(e) =>
|
|
201
|
+
(e) => n.value = !e,
|
|
202
202
|
{ immediate: !0 }
|
|
203
203
|
), (e, w) => (u(), v("div", {
|
|
204
204
|
class: h(["rds-e-textfield", z.value])
|
|
@@ -214,7 +214,7 @@ import './style/textField.css';const W = { class: "rds-e-textfield__container" }
|
|
|
214
214
|
i("div", X, [
|
|
215
215
|
i("input", {
|
|
216
216
|
id: N.value,
|
|
217
|
-
type:
|
|
217
|
+
type: n.value ? "text" : "password",
|
|
218
218
|
class: "rds-e-textfield__input",
|
|
219
219
|
maxLength: t(y),
|
|
220
220
|
minLength: t(b),
|
|
@@ -252,7 +252,7 @@ import './style/textField.css';const W = { class: "rds-e-textfield__container" }
|
|
|
252
252
|
])
|
|
253
253
|
], 2));
|
|
254
254
|
}
|
|
255
|
-
}),
|
|
255
|
+
}), se = /* @__PURE__ */ Q(le, [["__scopeId", "data-v-2a397de0"]]);
|
|
256
256
|
export {
|
|
257
|
-
|
|
257
|
+
se as default
|
|
258
258
|
};
|