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.
Files changed (74) hide show
  1. package/dist/components/accordion.es.js +11 -11
  2. package/dist/components/button.es.js +1 -1
  3. package/dist/components/card.es.js +21 -9
  4. package/dist/components/checkbox.es.js +1 -1
  5. package/dist/components/datepicker.es.js +2008 -2008
  6. package/dist/components/dropdown.es.js +97 -97
  7. package/dist/components/{icon-svg-CEZ-L3iv.js → icon-svg-GoL3_ayS.js} +699 -665
  8. package/dist/components/iconList.es.js +1 -1
  9. package/dist/components/iconSvg.es.js +1 -1
  10. package/dist/components/index.es.js +50 -47
  11. package/dist/components/infoBox.es.js +1 -1
  12. package/dist/components/link.es.js +1 -1
  13. package/dist/components/modal.es.js +28 -26
  14. package/dist/components/multiselect.es.js +2 -2
  15. package/dist/components/overlay.es.js +3 -3
  16. package/dist/components/persistentToast.es.js +8 -8
  17. package/dist/components/quantitySelector.es.js +160 -0
  18. package/dist/components/radioButton.es.js +1 -1
  19. package/dist/components/sidebar.es.js +11 -11
  20. package/dist/components/style/breadcrumbs.css +1 -1
  21. package/dist/components/style/button.css +1 -1
  22. package/dist/components/style/card.css +1 -1
  23. package/dist/components/style/datepicker.css +1 -1
  24. package/dist/components/style/floatingActionButton.css +1 -1
  25. package/dist/components/style/link.css +1 -1
  26. package/dist/components/style/modal.css +1 -1
  27. package/dist/components/style/quantitySelector.css +1 -0
  28. package/dist/components/style/tag.css +1 -1
  29. package/dist/components/style/textArea.css +1 -1
  30. package/dist/components/style/textField.css +1 -1
  31. package/dist/components/style/tooltip.css +1 -1
  32. package/dist/components/switch.es.js +1 -1
  33. package/dist/components/tabBar.es.js +27 -27
  34. package/dist/components/tag.es.js +1 -1
  35. package/dist/components/textArea.es.js +75 -75
  36. package/dist/components/textField.es.js +11 -11
  37. package/dist/components/tooltip.es.js +255 -252
  38. package/dist/energy-components.es.js +4262 -4056
  39. package/dist/energy-components.umd.js +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +4 -4
  42. package/dist/types/src/components/buttons/button/button.vue.d.ts +11 -18
  43. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +4 -4
  44. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +20 -24
  45. package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +8 -15
  46. package/dist/types/src/components/content/card/card.vue.d.ts +26 -15
  47. package/dist/types/src/components/content/divider/divider.vue.d.ts +4 -4
  48. package/dist/types/src/components/content/tag/tag.vue.d.ts +4 -4
  49. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +7 -4
  50. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +7 -4
  51. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +13 -19
  52. package/dist/types/src/components/icon-svg/icon-list.vue.d.ts +1 -1
  53. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +4 -4
  54. package/dist/types/src/components/index.d.ts +1 -0
  55. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +13 -20
  56. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +26 -36
  57. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +93 -0
  58. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +4 -4
  59. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +13 -20
  60. package/dist/types/src/components/input/switch/switch.vue.d.ts +13 -19
  61. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +16 -25
  62. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +15 -23
  63. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +16 -21
  64. package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +6 -6
  65. package/dist/types/src/components/navigation/link/link.vue.d.ts +11 -17
  66. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +6 -6
  67. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -27
  68. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +92 -58
  69. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +11 -18
  70. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +19 -22
  71. package/dist/types/src/composables/breakpoints.d.ts +1 -1
  72. package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
  73. package/dist/types/tsconfig.tsbuildinfo +1 -1
  74. 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 n, createElementBlock as h, normalizeClass as f, createElementVNode as a, withDirectives as J, unref as t, vModelText as K, renderSlot as x, createBlock as C, mergeProps as M, toHandlers as q, createCommentVNode as s, createTextVNode as L, toDisplayString as i, pushScopeId as O, popScopeId as Q } from "vue";
2
- import { I as T } from "./icon-svg-CEZ-L3iv.js";
3
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/textArea.css';function y(e, m = !0, u = !0) {
5
- return m && !e.trim() ? (console.warn("Advertencia: El valor no puede estar vacío"), !1) : u && !/^[\w\-:]+$/.test(e) ? (console.warn("Advertencia: El valor contiene caracteres inválidos"), !1) : !0;
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 X = (e) => (O("data-v-51c6b51e"), e = e(), Q(), e), Y = { class: "rds-e-textarea__container" }, Z = { class: "rds-e-textarea__input-container" }, ee = ["id", "name", "maxlength", "minlength", "rows", "disabled"], te = /* @__PURE__ */ X(() => /* @__PURE__ */ a("div", { class: "rds-e-textarea__resize-handle" }, [
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(e) {
31
- return y(e, !0, !0);
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(e) {
41
- return y(e, !1, !0);
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(e) {
51
- return y(e, !1, !0);
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(e) {
153
- const m = e, u = F(e, "modelValue"), {
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: d,
144
+ minlength: g,
145
+ modelValue: c,
160
146
  icon: $,
161
- rightIcon: S,
147
+ rightIcon: k,
162
148
  helper: A,
163
- error: g,
149
+ error: _,
164
150
  helperText: z,
165
- clearable: k,
151
+ clearable: S,
166
152
  lengthError: D
167
- } = G(m), V = o(() => d.value.length === v.value), B = o(() => d.value.length === 0 ? !1 : d.value.length < _.value), E = o(() => D.value && (V.value || B.value)), P = 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 d.value && r.push("rds-e-textarea--filled"), g.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(" ");
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
- }, c = {
164
+ }, n = {
179
165
  left: { ...r },
180
- right: { ...r, name: S.value }
166
+ right: { ...r, name: k.value }
181
167
  };
182
- return k.value && (c.right = {
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: () => u.value = ""
173
+ click: () => d.value = ""
188
174
  }
189
- }), c;
190
- }), j = o(() => d.value.length);
191
- return (r, c) => {
192
- var I, N;
193
- return n(), h("div", {
194
- class: f(["rds-e-textarea", P.value])
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", Y, [
197
- a("div", Z, [
182
+ a("div", Q, [
183
+ a("div", W, [
198
184
  J(a("textarea", {
199
- id: (I = t(w)) == null ? void 0 : I.toString(),
200
- "onUpdate:modelValue": c[0] || (c[0] = (H) => u.value = H),
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: e.name,
204
- maxlength: t(v),
205
- minlength: t(_),
206
- rows: e.rows,
207
- disabled: t(p)
208
- }, null, 8, ee), [
209
- [K, u.value]
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
- te,
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: (N = t(w)) == null ? void 0 : N.toString(),
214
- class: f(["rds-e-textarea__label", {
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 ? (n(), C(T, M({
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)) : s("", !0)
223
+ }, l.value.left, q(l.value.left.events)), null, 16)) : i("", !0)
224
224
  ], !0),
225
- L(" " + i(t(b)), 1)
226
- ], 10, re),
225
+ L(" " + u(e(b)), 1)
226
+ ], 10, Y),
227
227
  a("div", {
228
- class: f(["rds-e-textarea__counter", {
229
- "rds-e-textarea__counter--disabled": t(p),
230
- "rds-e-textarea__counter--clearable": t(k)
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
- e.counter && !t(S) ? (n(), h("p", ae, i(j.value) + "/" + i(t(v)), 1)) : s("", !0),
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 ? (n(), C(T, M({
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)) : s("", !0)
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: f(["rds-e-textarea__helper", t(g) || E.value ? "rds-e-textarea__helper--error" : ""])
245
+ class: h(["rds-e-textarea__helper", e(_) || E.value ? "rds-e-textarea__helper--error" : ""])
246
246
  }, [
247
- V.value ? (n(), h("li", le, " Max text length is " + i(t(v)), 1)) : s("", !0),
248
- B.value ? (n(), h("li", ne, " Min text length is " + i(t(_)), 1)) : s("", !0),
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
- t(A) || t(g) ? (n(), h("span", oe, i(t(z)), 1)) : s("", !0)
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
- }), ce = /* @__PURE__ */ W(se, [["__scopeId", "data-v-51c6b51e"]]);
258
+ }), oe = /* @__PURE__ */ O(ae, [["__scopeId", "data-v-51c6b51e"]]);
259
259
  export {
260
- ce as default
260
+ oe as default
261
261
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as H, toRefs as M, ref as L, computed as n, 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";
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-CEZ-L3iv.js";
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), s = L(!0), m = L(!1), D = O(), N = n(() => a.id || `text-field-${D}`), F = n(() => {
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 = n(() => !!(f.value || o.value.length && (o.value.length < b.value || o.value.length > y.value))), z = n(() => {
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 = n(() => {
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: s.value ? "eye_open" : "eye_close",
179
+ name: n.value ? "eye_open" : "eye_close",
180
180
  class: "rds-e-textfield__icon--password",
181
181
  events: {
182
- click: () => s.value = !s.value
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) => s.value = !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: s.value ? "text" : "password",
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
- }), ne = /* @__PURE__ */ Q(le, [["__scopeId", "data-v-2a397de0"]]);
255
+ }), se = /* @__PURE__ */ Q(le, [["__scopeId", "data-v-2a397de0"]]);
256
256
  export {
257
- ne as default
257
+ se as default
258
258
  };