energy-components 1.6.0 → 1.8.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 (99) hide show
  1. package/dist/components/accordion.es.js +13 -13
  2. package/dist/components/accordionGroup.es.js +2 -2
  3. package/dist/components/actionButton.es.js +2 -2
  4. package/dist/components/breadcrumbs.es.js +3 -3
  5. package/dist/components/button.es.js +17 -17
  6. package/dist/components/card.es.js +5 -5
  7. package/dist/components/checkbox.es.js +5 -5
  8. package/dist/components/datepicker.es.js +588 -590
  9. package/dist/components/divider.es.js +2 -2
  10. package/dist/components/dragAndDrop.es.js +187 -0
  11. package/dist/components/dropdown.es.js +92 -92
  12. package/dist/components/filterChip.es.js +2 -2
  13. package/dist/components/floatingActionButton.es.js +2 -2
  14. package/dist/components/{icon-svg-DGp2yHJn.js → icon-svg-_WCkLP8-.js} +36 -71
  15. package/dist/components/iconList.es.js +4 -4
  16. package/dist/components/iconSvg.es.js +1 -1
  17. package/dist/components/index.es.js +81 -75
  18. package/dist/components/indicator.es.js +6 -6
  19. package/dist/components/infoBox.es.js +16 -16
  20. package/dist/components/link.es.js +2 -2
  21. package/dist/components/modal.es.js +26 -26
  22. package/dist/components/multiselect.es.js +5 -5
  23. package/dist/components/multiselectcontentwrapper.es.js +6 -6
  24. package/dist/components/overlay.es.js +3 -3
  25. package/dist/components/pagination.es.js +32 -21
  26. package/dist/components/persistentToast.es.js +12 -12
  27. package/dist/components/progressBar.es.js +86 -0
  28. package/dist/components/quantitySelector.es.js +9 -9
  29. package/dist/components/{radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js → radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js} +2 -2
  30. package/dist/components/radioButton.es.js +4 -4
  31. package/dist/components/radioGroup.es.js +1 -1
  32. package/dist/components/selectionChip.es.js +3 -3
  33. package/dist/components/sidebar.es.js +13 -13
  34. package/dist/components/sidedrawer.es.js +41 -29
  35. package/dist/components/style/actionButton.css +1 -1
  36. package/dist/components/style/button.css +1 -1
  37. package/dist/components/style/dragAndDrop.css +1 -0
  38. package/dist/components/style/dropdown.css +1 -1
  39. package/dist/components/style/icon-svg.css +1 -1
  40. package/dist/components/style/pagination.css +1 -1
  41. package/dist/components/style/progressBar.css +1 -0
  42. package/dist/components/style/sidedrawer.css +1 -1
  43. package/dist/components/style/switch.css +1 -1
  44. package/dist/components/style/tabBar.css +1 -1
  45. package/dist/components/style/tablepaginatedcomponent.css +1 -1
  46. package/dist/components/style/textField.css +1 -1
  47. package/dist/components/style/tooltip.css +1 -1
  48. package/dist/components/switch.es.js +45 -38
  49. package/dist/components/tabBar.es.js +72 -55
  50. package/dist/components/tablepaginatedcomponent.es.js +42 -40
  51. package/dist/components/tableslotedcomponent.es.js +26 -26
  52. package/dist/components/tag.es.js +2 -2
  53. package/dist/components/textArea.es.js +2 -2
  54. package/dist/components/textField.es.js +30 -30
  55. package/dist/components/toggle.es.js +2 -2
  56. package/dist/components/tooltip.es.js +337 -325
  57. package/dist/energy-components.es.js +5062 -4776
  58. package/dist/energy-components.umd.js +2 -1
  59. package/dist/style.css +1 -1
  60. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +1 -1
  61. package/dist/types/src/components/buttons/button/button.vue.d.ts +8 -13
  62. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +1 -1
  63. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +6 -17
  64. package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +6 -11
  65. package/dist/types/src/components/content/card/card.vue.d.ts +6 -11
  66. package/dist/types/src/components/content/divider/divider.vue.d.ts +1 -1
  67. package/dist/types/src/components/content/table/table-paginated/TablePaginatedComponent.vue.d.ts +88 -0
  68. package/dist/types/src/components/content/table/table-sloted/TableSlotedComponent.vue.d.ts +32 -31
  69. package/dist/types/src/components/content/tag/tag.vue.d.ts +1 -1
  70. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +1 -4
  71. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +8 -18
  72. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +8 -12
  73. package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +101 -0
  74. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +20 -1
  75. package/dist/types/src/components/index.d.ts +2 -0
  76. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +6 -11
  77. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +258 -0
  78. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +203 -0
  79. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +30 -550
  80. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +3 -5
  81. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +2 -5
  82. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +1 -1
  83. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +6 -11
  84. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +3 -5
  85. package/dist/types/src/components/input/switch/switch.vue.d.ts +24 -21
  86. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +12 -15
  87. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +12 -19
  88. package/dist/types/src/components/input/toggle/toggle.vue.d.ts +1 -1
  89. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +10 -17
  90. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +23 -16
  91. package/dist/types/src/components/navigation/link/link.vue.d.ts +7 -11
  92. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +18 -1
  93. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -18
  94. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +10 -141
  95. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +5 -10
  96. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +8 -19
  97. package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
  98. package/dist/types/tsconfig.tsbuildinfo +1 -1
  99. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { defineComponent as R, toRefs as B, ref as l, watch as D, nextTick as N, inject as _, onMounted as V, onBeforeUnmount as q, openBlock as v, createElementBlock as w, createElementVNode as n, toDisplayString as h, unref as d, createBlock as H, mergeProps as P, createCommentVNode as T, createVNode as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
2
- import { R as I } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as R, toRefs as B, ref as l, watch as D, nextTick as N, inject as v, onMounted as V, onBeforeUnmount as q, createElementBlock as w, openBlock as _, createElementVNode as n, toDisplayString as h, createBlock as H, createCommentVNode as P, createVNode as T, unref as d, mergeProps as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
2
+ import { R as I } from "./icon-svg-_WCkLP8-.js";
3
3
  import O from "./tag.es.js";
4
4
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ R({
@@ -50,9 +50,9 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
50
50
  i.value.style.maxHeight = t.value ? `${e}px` : "0px";
51
51
  }, r = (e) => {
52
52
  e === void 0 ? t.value = !t.value : t.value = e, k("update:open", t.value), x();
53
- }, u = () => {
54
- r(!0);
55
53
  }, p = () => {
54
+ r(!0);
55
+ }, u = () => {
56
56
  r(!1);
57
57
  };
58
58
  D(
@@ -62,12 +62,12 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
62
62
  }),
63
63
  { immediate: !0 }
64
64
  );
65
- const m = _("registerRDSAccordionChild"), f = _("unregisterRDSAccordionChild");
65
+ const m = v("registerRDSAccordionChild"), f = v("unregisterRDSAccordionChild");
66
66
  return V(() => {
67
67
  m && m({
68
68
  id: o.id,
69
- open: u,
70
- close: p
69
+ open: p,
70
+ close: u
71
71
  });
72
72
  }), q(() => {
73
73
  f && f(o.id);
@@ -75,23 +75,23 @@ import './style/accordion.css';const b = { class: "rds-e-accordion" }, z = { cla
75
75
  /**
76
76
  * Abre el panel.
77
77
  */
78
- openPanel: u,
78
+ openPanel: p,
79
79
  /**
80
80
  * Cierra el panel.
81
81
  */
82
- closePanel: p
83
- }), (e, g) => (v(), w("div", b, [
82
+ closePanel: u
83
+ }), (e, g) => (_(), w("div", b, [
84
84
  n("div", {
85
85
  class: "rds-e-accordion-title_container",
86
86
  onClick: g[0] || (g[0] = () => r())
87
87
  }, [
88
88
  n("span", z, h(c.title), 1),
89
89
  n("div", M, [
90
- d(a) && d(a).icon ? (v(), H(O, P({
90
+ d(a) && d(a).icon ? (_(), H(O, j({
91
91
  key: 0,
92
92
  class: "rds-e-accordion-title_tag"
93
- }, d(a), { small: "" }), null, 16)) : T("", !0),
94
- j(I, {
93
+ }, d(a), { small: "" }), null, 16)) : P("", !0),
94
+ T(I, {
95
95
  class: y(["rds-e-accordion-title_icon", { "rds-e-accordion-title_icon--open": t.value }]),
96
96
  name: "arrow_down"
97
97
  }, null, 8, ["class"])
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, ref as t, provide as r, openBlock as d, createElementBlock as i, renderSlot as a } from "vue";
1
+ import { defineComponent as s, ref as t, provide as r, createElementBlock as d, openBlock as i, renderSlot as a } from "vue";
2
2
  import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/accordionGroup.css';const u = { class: "rds-e-accordion-group" }, _ = /* @__PURE__ */ s({
4
4
  __name: "accordion-group",
@@ -22,7 +22,7 @@ import './style/accordionGroup.css';const u = { class: "rds-e-accordion-group" }
22
22
  closeAll: () => {
23
23
  o.value.forEach((e) => e.close());
24
24
  }
25
- }), (e, c) => (d(), i("div", u, [
25
+ }), (e, c) => (i(), d("div", u, [
26
26
  a(e.$slots, "default", {}, void 0, !0)
27
27
  ]));
28
28
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, openBlock as a, createBlock as r, mergeProps as n } from "vue";
1
+ import { defineComponent as o, createBlock as a, openBlock as r, mergeProps as n } from "vue";
2
2
  import s from "./button.es.js";
3
3
  import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/actionButton.css';const p = /* @__PURE__ */ o({
@@ -53,7 +53,7 @@ import './style/actionButton.css';const p = /* @__PURE__ */ o({
53
53
  }
54
54
  },
55
55
  setup(e) {
56
- return (t, i) => (a(), r(s, n({ class: "rds-e-btn--action" }, { ...t.$props, ...t.$attrs }, {
56
+ return (t, i) => (r(), a(s, n({ class: "rds-e-btn--action" }, { ...t.$props, ...t.$attrs }, {
57
57
  text: "",
58
58
  "is-action": ""
59
59
  }), null, 16));
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, toRefs as h, ref as y, watchEffect as C, onMounted as L, openBlock as c, createElementBlock as l, Fragment as I, renderList as w, normalizeClass as x, unref as B, createVNode as j, mergeProps as E, toHandlers as P, withCtx as T, createCommentVNode as D } from "vue";
1
+ import { defineComponent as g, toRefs as h, ref as y, watchEffect as C, onMounted as L, createElementBlock as c, openBlock as l, Fragment as I, renderList as w, normalizeClass as x, unref as B, createVNode as j, mergeProps as E, toHandlers as P, withCtx as T, createCommentVNode as D } from "vue";
2
2
  import N from "./link.es.js";
3
3
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
@@ -69,7 +69,7 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
69
69
  u();
70
70
  }), L(() => {
71
71
  u();
72
- }), (e, a) => (c(!0), l(I, null, w(n.value, (r, i) => (c(), l("ul", {
72
+ }), (e, a) => (l(!0), c(I, null, w(n.value, (r, i) => (l(), c("ul", {
73
73
  key: i,
74
74
  class: x(["rds-e-breadcrumbs", `${B(o) ? "rds-e-breadcrumbs--inverse" : ""}`])
75
75
  }, [
@@ -78,7 +78,7 @@ import './style/breadcrumbs.css';const R = { key: 0 }, V = /* @__PURE__ */ g({
78
78
  ref_for: !0
79
79
  }, b(r, i), P(_(r))), {
80
80
  default: T(() => [
81
- r != null && r.clickable ? (c(), l("span", R, "...")) : D("", !0)
81
+ r != null && r.clickable ? (l(), c("span", R, "...")) : D("", !0)
82
82
  ]),
83
83
  _: 2
84
84
  }, 1040, ["class"])
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, toRefs as S, computed as l, openBlock as v, createElementBlock as x, unref as s, normalizeClass as m, createBlock as I, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as R } from "vue";
2
- import { R as V } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as B, toRefs as S, computed as l, createElementBlock as x, openBlock as b, normalizeClass as m, unref as o, createBlock as I, createCommentVNode as k, createElementVNode as $, renderSlot as C, createTextVNode as N, toDisplayString as R } from "vue";
2
+ import { R as V } from "./icon-svg-_WCkLP8-.js";
3
3
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-btn__text" }, w = /* @__PURE__ */ B({
5
5
  __name: "button",
@@ -42,15 +42,15 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-
42
42
  /**
43
43
  * <span>Variante del botón</span>
44
44
  * <br>
45
- *`['primary', 'secondary', 'ghost']`
45
+ *`['primary', 'secondary', 'ghost', 'commercial']`
46
46
  */
47
47
  variant: {
48
48
  type: String,
49
49
  default: "primary",
50
50
  validator(e) {
51
- const t = ["primary", "secondary", "ghost"].includes(e);
51
+ const t = ["primary", "secondary", "ghost", "commercial"].includes(e);
52
52
  return t || console.info(
53
- `La variante ${e} no es válida. Las variantes válidas son: primary, secondary, ghost`
53
+ `La variante ${e} no es válida. Las variantes válidas son: primary, secondary, ghost, commercial`
54
54
  ), t;
55
55
  }
56
56
  },
@@ -99,7 +99,7 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-
99
99
  },
100
100
  setup(e) {
101
101
  const t = e, {
102
- text: o,
102
+ text: s,
103
103
  icon: n,
104
104
  type: r,
105
105
  variant: i,
@@ -109,35 +109,35 @@ import './style/button.css';const E = ["type", "disabled"], L = { class: "rds-e-
109
109
  inverse: d,
110
110
  revertIcon: _,
111
111
  loading: p
112
- } = S(t), c = l(() => p.value ? "loading" : n != null && n.value ? n == null ? void 0 : n.value : ""), h = l(() => r.value && ["button", "submit", "reset"].includes(r.value) ? r.value : "button"), b = l(() => ["primary", "secondary", "ghost"].includes(i.value) ? i.value : "primary"), g = l(() => {
112
+ } = S(t), c = l(() => p.value ? "loading" : n != null && n.value ? n == null ? void 0 : n.value : ""), h = l(() => r.value && ["button", "submit", "reset"].includes(r.value) ? r.value : "button"), v = l(() => ["primary", "secondary", "ghost", "commercial"].includes(i.value) ? i.value : "primary"), g = l(() => {
113
113
  const a = ["rds-e-btn"];
114
- return i.value && a.push(`rds-e-btn--${b.value}`), d.value && a.push(`rds-e-btn--${b.value}-inverse`), c.value && a.push(
115
- o != null && o.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
114
+ return i.value && a.push(`rds-e-btn--${v.value}`), d.value && a.push(`rds-e-btn--${v.value}-inverse`), c.value && a.push(
115
+ s != null && s.value ? "rds-e-btn--with-icon" : "rds-e-btn--icon"
116
116
  ), f.value && a.push("rds-e-btn--small"), _.value && a.push("rds-e-btn--revert"), u.value && a.push("rds-e-style-state-disabled"), p.value && a.push("rds-e-btn--loading"), y.value && a.push("rds-e-btn--mobile-width"), a.join(" ");
117
117
  });
118
- return (a, W) => (v(), x("button", {
118
+ return (a, W) => (b(), x("button", {
119
119
  type: h.value,
120
- disabled: s(u),
120
+ disabled: o(u),
121
121
  class: m(g.value)
122
122
  }, [
123
- c.value ? (v(), I(V, {
123
+ c.value ? (b(), I(V, {
124
124
  key: 0,
125
125
  name: c.value,
126
- small: s(f),
126
+ small: o(f),
127
127
  class: m(["rds-e-btn__icon", [
128
- s(d) ? `rds-e-btn__icon--${s(d)}` : "",
129
- s(u) ? "rds-e-btn__icon--disabled" : ""
128
+ o(d) ? `rds-e-btn__icon--${o(d)}` : "",
129
+ o(u) ? "rds-e-btn__icon--disabled" : ""
130
130
  ]]),
131
131
  "aria-hidden": "true"
132
132
  }, null, 8, ["name", "small", "class"])) : k("", !0),
133
133
  $("span", L, [
134
134
  C(a.$slots, "default", {}, () => [
135
- N(R(s(o)), 1)
135
+ N(R(o(s)), 1)
136
136
  ], !0)
137
137
  ])
138
138
  ], 10, E));
139
139
  }
140
- }), T = /* @__PURE__ */ D(w, [["__scopeId", "data-v-a17b5b56"]]);
140
+ }), T = /* @__PURE__ */ D(w, [["__scopeId", "data-v-ad01f4e1"]]);
141
141
  export {
142
142
  T as default
143
143
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as s, openBlock as r, createElementBlock as o, normalizeClass as a, renderSlot as n } from "vue";
2
- import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineComponent as s, createElementBlock as o, openBlock as r, normalizeClass as a, renderSlot as c } from "vue";
2
+ import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/card.css';const d = /* @__PURE__ */ s({
4
4
  __name: "card",
5
5
  props: {
@@ -15,10 +15,10 @@ import './style/card.css';const d = /* @__PURE__ */ s({
15
15
  return (t, l) => (r(), o("div", {
16
16
  class: a(["rds-e-card", e.customClass])
17
17
  }, [
18
- n(t.$slots, "default", {}, void 0, !0)
18
+ c(t.$slots, "default", {}, void 0, !0)
19
19
  ], 2));
20
20
  }
21
- }), f = /* @__PURE__ */ c(d, [["__scopeId", "data-v-f2e83835"]]);
21
+ }), _ = /* @__PURE__ */ n(d, [["__scopeId", "data-v-f2e83835"]]);
22
22
  export {
23
- f as default
23
+ _ as default
24
24
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, openBlock as b, createElementBlock as g, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, toDisplayString as C, createBlock as E, createCommentVNode as L } from "vue";
2
- import { R as V } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as x, ref as d, watch as v, onMounted as y, onBeforeUnmount as w, createElementBlock as g, openBlock as b, normalizeClass as o, createElementVNode as n, renderSlot as S, createTextVNode as B, createBlock as C, createCommentVNode as E, toDisplayString as L } from "vue";
2
+ import { R as V } from "./icon-svg-_WCkLP8-.js";
3
3
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/checkbox.css';const D = ["id", "checked", "aria-label", "required", "disabled"], N = ["for"], q = /* @__PURE__ */ x({
5
5
  __name: "checkbox",
@@ -112,13 +112,13 @@ import './style/checkbox.css';const D = ["id", "checked", "aria-label", "require
112
112
  }
113
113
  ])
114
114
  }, [
115
- B(C(e.label) + " ", 1),
116
- e.icon ? (b(), E(V, {
115
+ B(L(e.label) + " ", 1),
116
+ e.icon ? (b(), C(V, {
117
117
  key: 0,
118
118
  class: "rds-e-checkbox__label-box--icon",
119
119
  name: e.icon,
120
120
  size: "sm"
121
- }, null, 8, ["name"])) : L("", !0)
121
+ }, null, 8, ["name"])) : E("", !0)
122
122
  ], 2)
123
123
  ], !0)
124
124
  ], 10, N)