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
1
  import k from "./multiselectcontentwrapper.es.js";
2
- import { resolveComponent as E, openBlock as c, createElementBlock as g, normalizeClass as P, withKeys as a, withModifiers as o, renderSlot as u, createElementVNode as p, withDirectives as S, Fragment as A, renderList as v, toDisplayString as O, vShow as L, createCommentVNode as m, createVNode as b, Transition as T, withCtx as y, normalizeStyle as N, createTextVNode as C, createSlots as B, normalizeProps as $, guardReactiveProps as G, createBlock as F, Teleport as x } from "vue";
2
+ import { resolveComponent as E, createElementBlock as g, openBlock as c, withKeys as a, normalizeClass as P, withModifiers as o, renderSlot as u, createElementVNode as p, createVNode as b, createBlock as A, createCommentVNode as m, withDirectives as S, Fragment as N, renderList as v, toDisplayString as O, vShow as L, Transition as T, withCtx as y, normalizeStyle as C, createTextVNode as F, createSlots as B, normalizeProps as $, guardReactiveProps as G, Teleport as x } from "vue";
3
3
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/multiselect.css';function w(e) {
5
5
  return e === 0 ? !1 : Array.isArray(e) && e.length === 0 ? !0 : !e;
@@ -913,7 +913,7 @@ function te(e, t, i, n, r, l) {
913
913
  isOpen: e.isOpen
914
914
  }, () => [
915
915
  S(p("div", Q, [
916
- (c(!0), g(A, null, v(l.visibleValues, (s, h) => u(e.$slots, "tag", {
916
+ (c(!0), g(N, null, v(l.visibleValues, (s, h) => u(e.$slots, "tag", {
917
917
  option: s,
918
918
  search: e.search,
919
919
  remove: e.removeElement
@@ -963,7 +963,7 @@ function te(e, t, i, n, r, l) {
963
963
  spellcheck: i.spellcheck,
964
964
  placeholder: e.placeholder,
965
965
  required: i.required,
966
- style: N({
966
+ style: C({
967
967
  ...l.inputStyle
968
968
  }),
969
969
  value: e.search,
@@ -988,7 +988,7 @@ function te(e, t, i, n, r, l) {
988
988
  onMousedown: t[9] || (t[9] = o((...s) => e.toggle && e.toggle(...s), ["prevent"]))
989
989
  }, [
990
990
  u(e.$slots, "singleLabel", { option: l.singleValue }, () => [
991
- C(O(e.currentOptionLabel), 1)
991
+ F(O(e.currentOptionLabel), 1)
992
992
  ], !0)
993
993
  ], 32)) : m("", !0),
994
994
  m("", !0)
@@ -1040,7 +1040,7 @@ function te(e, t, i, n, r, l) {
1040
1040
  ]),
1041
1041
  _: 3
1042
1042
  }),
1043
- i.appendToBody && e.isOpen ? (c(), F(x, {
1043
+ i.appendToBody && e.isOpen ? (c(), A(x, {
1044
1044
  key: 0,
1045
1045
  to: "body"
1046
1046
  }, [
@@ -1,4 +1,4 @@
1
- import { openBlock as o, createElementBlock as c, normalizeClass as m, withModifiers as u, normalizeStyle as b, createElementVNode as a, renderSlot as i, createTextVNode as g, toDisplayString as h, createCommentVNode as r, Fragment as S, renderList as y, withDirectives as _, vShow as f } from "vue";
1
+ import { createElementBlock as o, openBlock as c, normalizeStyle as b, withModifiers as u, normalizeClass as m, createElementVNode as a, renderSlot as i, createCommentVNode as r, withDirectives as _, createTextVNode as g, toDisplayString as h, Fragment as S, renderList as y, vShow as f } from "vue";
2
2
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/multiselectcontentwrapper.css';const w = {
4
4
  name: "MultiselectContentWrapper",
@@ -43,7 +43,7 @@ import './style/multiselectcontentwrapper.css';const w = {
43
43
  emits: ["focus"]
44
44
  }, O = ["id", "aria-multiselectable"], M = { key: 0 }, v = { class: "multiselect__option" }, T = ["aria-selected", "id", "role"], x = ["onClick", "onMouseenter", "data-select", "data-selected", "data-deselect"], B = ["data-select", "data-deselect", "onMouseenter", "onMousedown"], F = { class: "multiselect__option" }, N = { class: "multiselect__option" };
45
45
  function k(l, n, e, G, C, D) {
46
- return o(), c("div", {
46
+ return c(), o("div", {
47
47
  class: m([
48
48
  "multiselect__content-wrapper",
49
49
  { "multiselect__content-wrapper--small": e.small },
@@ -64,21 +64,21 @@ function k(l, n, e, G, C, D) {
64
64
  "aria-multiselectable": e.multiple
65
65
  }, [
66
66
  i(l.$slots, "beforeList", {}, void 0, !0),
67
- e.multiple && e.max === e.internalValue.length ? (o(), c("li", M, [
67
+ e.multiple && e.max === e.internalValue.length ? (c(), o("li", M, [
68
68
  a("span", v, [
69
69
  i(l.$slots, "maxElements", {}, () => [
70
70
  g("Maximum of " + h(e.max) + " options selected. First remove a selected option to select another.", 1)
71
71
  ], !0)
72
72
  ])
73
73
  ])) : r("", !0),
74
- !e.max || e.internalValue.length < e.max ? (o(!0), c(S, { key: 1 }, y(e.filteredOptions, (t, s) => (o(), c("li", {
74
+ !e.max || e.internalValue.length < e.max ? (c(!0), o(S, { key: 1 }, y(e.filteredOptions, (t, s) => (c(), o("li", {
75
75
  class: "multiselect__element",
76
76
  key: s,
77
77
  "aria-selected": e.isSelected(t),
78
78
  id: e.id + "-" + s,
79
79
  role: t && (t.$isLabel || t.$isDisabled) ? null : "option"
80
80
  }, [
81
- t && (t.$isLabel || t.$isDisabled) ? r("", !0) : (o(), c("span", {
81
+ t && (t.$isLabel || t.$isDisabled) ? r("", !0) : (c(), o("span", {
82
82
  key: 0,
83
83
  class: m([e.optionHighlight(s, t), "multiselect__option"]),
84
84
  onClick: u((d) => e.select(t), ["stop"]),
@@ -95,7 +95,7 @@ function k(l, n, e, G, C, D) {
95
95
  a("span", null, h(e.getOptionLabel(t)), 1)
96
96
  ], !0)
97
97
  ], 42, x)),
98
- t && (t.$isLabel || t.$isDisabled) ? (o(), c("span", {
98
+ t && (t.$isLabel || t.$isDisabled) ? (c(), o("span", {
99
99
  key: 1,
100
100
  "data-select": e.groupSelect && e.selectGroupLabelText,
101
101
  "data-deselect": e.groupSelect && e.deselectGroupLabelText,
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, openBlock as a, createBlock as n, Teleport as d, createElementVNode as t, mergeProps as l, renderSlot as p } from "vue";
1
+ import { defineComponent as s, createBlock as a, openBlock as d, Teleport as l, createElementVNode as t, mergeProps as n, renderSlot as p } from "vue";
2
2
  import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/overlay.css';const _ = { class: "rds-e-overlay__content" }, i = /* @__PURE__ */ s({
4
4
  __name: "overlay",
@@ -15,10 +15,10 @@ import './style/overlay.css';const _ = { class: "rds-e-overlay__content" }, i =
15
15
  },
16
16
  setup(o) {
17
17
  const r = o;
18
- return (e, u) => (a(), n(d, {
18
+ return (e, m) => (d(), a(l, {
19
19
  to: r.teleport
20
20
  }, [
21
- t("div", l({ class: "rds-e-overlay" }, e.$attrs), [
21
+ t("div", n({ class: "rds-e-overlay" }, e.$attrs), [
22
22
  t("div", _, [
23
23
  p(e.$slots, "default", {}, void 0, !0)
24
24
  ])
@@ -1,10 +1,10 @@
1
- import { defineComponent as j, toRefs as F, ref as V, computed as u, openBlock as o, createElementBlock as g, createElementVNode as f, createBlock as C, createCommentVNode as h, createVNode as P, Fragment as A, renderList as T, toDisplayString as k, unref as U } from "vue";
1
+ import { defineComponent as j, toRefs as V, ref as A, computed as u, onBeforeMount as T, createElementBlock as g, openBlock as o, createElementVNode as f, createCommentVNode as h, createBlock as C, createVNode as P, Fragment as U, renderList as z, toDisplayString as k, unref as G } from "vue";
2
2
  import c from "./actionButton.es.js";
3
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/pagination.css';const G = { class: "rds-e-pagination-container rds-flex" }, H = { class: "rds-e-pagination" }, J = {
3
+ import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/pagination.css';const J = { class: "rds-e-pagination-container rds-flex" }, K = { class: "rds-e-pagination" }, O = {
5
5
  key: 0,
6
6
  class: "rds-e-pagination-leyend"
7
- }, K = /* @__PURE__ */ j({
7
+ }, Q = /* @__PURE__ */ j({
8
8
  __name: "pagination",
9
9
  props: {
10
10
  /**
@@ -62,20 +62,29 @@ import './style/pagination.css';const G = { class: "rds-e-pagination-container r
62
62
  selected: {
63
63
  type: Boolean,
64
64
  default: !1
65
+ },
66
+ /**
67
+ * Desactiva el evento por defecto de la paginación al cargar el componente.
68
+ * Si se desactiva, la carga de datos debe manejarse manualmente la primera vez que se carga el componente.
69
+ */
70
+ disableFirstLoad: {
71
+ type: Boolean,
72
+ default: !1
65
73
  }
66
74
  },
67
75
  emits: ["pageChanged"],
68
76
  setup(p, { expose: N, emit: w }) {
69
- const m = p, M = w, {
77
+ const m = p, L = w, {
70
78
  itemsPerPage: v,
71
79
  totalItems: e,
72
80
  totalPages: r,
73
- hideLeyend: S
74
- } = F(m), l = V(m.currentPage), d = u(() => typeof (e == null ? void 0 : e.value) == "number" && e.value >= 0), b = u(() => d.value && typeof (e == null ? void 0 : e.value) == "number" ? e.value <= 0 || v.value <= 0 ? 1 : Math.ceil(e.value / v.value) : typeof (r == null ? void 0 : r.value) == "number" && r.value > 0 ? r.value : (typeof (r == null ? void 0 : r.value) > "u" && typeof (e == null ? void 0 : e.value) > "u" && console.warn("[RDSPagination] Props `totalItems` o `totalPages` son requeridas."), 1)), $ = u(() => d.value && !S.value && typeof (e == null ? void 0 : e.value) == "number" && e.value > 0), L = u(() => !d.value || typeof (e == null ? void 0 : e.value) != "number" || e.value === 0 ? 0 : (l.value - 1) * v.value + 1), q = u(() => {
81
+ hideLeyend: M,
82
+ disableFirstLoad: S
83
+ } = V(m), l = A(m.currentPage), d = u(() => typeof (e == null ? void 0 : e.value) == "number" && e.value >= 0), b = u(() => d.value && typeof (e == null ? void 0 : e.value) == "number" ? e.value <= 0 || v.value <= 0 ? 1 : Math.ceil(e.value / v.value) : typeof (r == null ? void 0 : r.value) == "number" && r.value > 0 ? r.value : (typeof (r == null ? void 0 : r.value) > "u" && typeof (e == null ? void 0 : e.value) > "u" && console.warn("[RDSPagination] Props `totalItems` o `totalPages` son requeridas."), 1)), $ = u(() => d.value && !M.value && typeof (e == null ? void 0 : e.value) == "number" && e.value > 0), F = u(() => !d.value || typeof (e == null ? void 0 : e.value) != "number" || e.value === 0 ? 0 : (l.value - 1) * v.value + 1), q = u(() => {
75
84
  if (!d.value || typeof (e == null ? void 0 : e.value) != "number") return 0;
76
85
  const t = l.value * v.value;
77
86
  return Math.min(t, e.value);
78
- }), _ = u(() => l.value === 1), x = u(() => l.value === b.value), D = u(() => {
87
+ }), _ = u(() => l.value === 1), B = u(() => l.value === b.value), D = u(() => {
79
88
  const t = [], a = b.value, n = l.value;
80
89
  if (a <= 3)
81
90
  for (let i = 1; i <= a; i++)
@@ -105,26 +114,28 @@ import './style/pagination.css';const G = { class: "rds-e-pagination-container r
105
114
  }, s = (t, a = !1) => {
106
115
  if (E(t) || a) {
107
116
  const i = v.value, y = (l.value - 1) * i;
108
- let B = y + i;
109
- d.value && typeof (e == null ? void 0 : e.value) == "number" && (B = Math.min(y + i, e.value));
117
+ let x = y + i;
118
+ d.value && typeof (e == null ? void 0 : e.value) == "number" && (x = Math.min(y + i, e.value));
110
119
  const R = {
111
120
  ...t,
112
121
  page: l.value,
113
122
  offset: y,
114
123
  limit: i,
115
- end: B,
124
+ end: x,
116
125
  reset: a || void 0
117
126
  };
118
- M("pageChanged", R);
127
+ L("pageChanged", R);
119
128
  }
120
129
  };
121
- return N({
130
+ return T(() => {
131
+ S.value || s({ navigator: "first", page: 1 });
132
+ }), N({
122
133
  /** Resetea la paginación a la primera página y emite el evento pageChanged. */
123
134
  resetPagination: () => {
124
135
  l.value !== 1 && s({ page: 1 }, !0);
125
136
  }
126
- }), (t, a) => (o(), g("div", G, [
127
- f("ul", H, [
137
+ }), (t, a) => (o(), g("div", J, [
138
+ f("ul", K, [
128
139
  f("li", null, [
129
140
  p.jumpTo ? (o(), C(c, {
130
141
  key: 0,
@@ -148,7 +159,7 @@ import './style/pagination.css';const G = { class: "rds-e-pagination-container r
148
159
  onClick: a[1] || (a[1] = (n) => s({ navigator: "prev" }))
149
160
  }, null, 8, ["disabled"])
150
161
  ]),
151
- (o(!0), g(A, null, T(D.value, (n) => (o(), g("li", { key: n }, [
162
+ (o(!0), g(U, null, z(D.value, (n) => (o(), g("li", { key: n }, [
152
163
  P(c, {
153
164
  class: "rds-e-pagination__item",
154
165
  variant: n === l.value && m.selected ? "primary" : "ghost",
@@ -166,7 +177,7 @@ import './style/pagination.css';const G = { class: "rds-e-pagination-container r
166
177
  icon: "arrow_right",
167
178
  small: "",
168
179
  "aria-label": "next page",
169
- disabled: x.value,
180
+ disabled: B.value,
170
181
  onClick: a[2] || (a[2] = (n) => s({ navigator: "next" }))
171
182
  }, null, 8, ["disabled"])
172
183
  ]),
@@ -178,15 +189,15 @@ import './style/pagination.css';const G = { class: "rds-e-pagination-container r
178
189
  small: "",
179
190
  icon: "last",
180
191
  "aria-label": "last page",
181
- disabled: x.value,
192
+ disabled: B.value,
182
193
  onClick: a[3] || (a[3] = (n) => s({ navigator: "last" }))
183
194
  }, null, 8, ["disabled"])) : h("", !0)
184
195
  ])
185
196
  ]),
186
- $.value ? (o(), g("p", J, " Mostrando resultados " + k(L.value) + "-" + k(q.value) + " de " + k(U(e)), 1)) : h("", !0)
197
+ $.value ? (o(), g("p", O, " Mostrando resultados " + k(F.value) + "-" + k(q.value) + " de " + k(G(e)), 1)) : h("", !0)
187
198
  ]));
188
199
  }
189
- }), X = /* @__PURE__ */ z(K, [["__scopeId", "data-v-f56e8bc0"]]);
200
+ }), Z = /* @__PURE__ */ H(Q, [["__scopeId", "data-v-78eeeb8a"]]);
190
201
  export {
191
- X as default
202
+ Z as default
192
203
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as v, toRefs as y, computed as g, openBlock as t, createElementBlock as s, normalizeClass as h, createElementVNode as i, createVNode as a, createCommentVNode as o, toDisplayString as c, renderSlot as l } from "vue";
2
- import { R as d } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as f, toRefs as y, computed as g, createElementBlock as t, openBlock as s, normalizeClass as h, createElementVNode as i, createCommentVNode as o, createVNode as a, toDisplayString as c, renderSlot as l } from "vue";
2
+ import { R as d } from "./icon-svg-_WCkLP8-.js";
3
3
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/persistentToast.css';const $ = { class: "alert" }, S = {
5
5
  key: 0,
@@ -16,7 +16,7 @@ import './style/persistentToast.css';const $ = { class: "alert" }, S = {
16
16
  }, B = {
17
17
  key: 0,
18
18
  class: "rds-e-persistent-toast__action-section"
19
- }, N = /* @__PURE__ */ v({
19
+ }, N = /* @__PURE__ */ f({
20
20
  __name: "persistent-toast",
21
21
  props: {
22
22
  /**
@@ -89,15 +89,15 @@ import './style/persistentToast.css';const $ = { class: "alert" }, S = {
89
89
  setup(e, { emit: u }) {
90
90
  const _ = e, m = u, { type: r } = y(_), p = g(
91
91
  () => `rds-e-persistent-toast rds-mb-03 rds-e-persistent-toast${r.value === "success" ? "--success" : ""}${r.value === "error" ? "--error" : ""}${r.value === "warning" ? "--warning" : ""}${r.value === "info" ? "--info" : ""}`
92
- ), f = () => {
92
+ ), v = () => {
93
93
  m("onCloseToastAction");
94
94
  };
95
- return (n, R) => (t(), s("div", {
95
+ return (n, R) => (s(), t("div", {
96
96
  class: h(["rds-e-persistent-toast", p.value]),
97
97
  role: "alert"
98
98
  }, [
99
99
  i("div", $, [
100
- e.icon ? (t(), s("div", S, [
100
+ e.icon ? (s(), t("div", S, [
101
101
  a(d, {
102
102
  name: e.icon,
103
103
  class: "rds-e-persistent-toast__custom-icon",
@@ -106,16 +106,16 @@ import './style/persistentToast.css';const $ = { class: "alert" }, S = {
106
106
  ])) : o("", !0),
107
107
  i("div", C, [
108
108
  i("div", q, [
109
- e.title ? (t(), s("div", w, c(e.title), 1)) : o("", !0),
110
- e.message && !n.$slots["content-section"] ? (t(), s("p", b, c(e.message), 1)) : o("", !0),
111
- n.$slots["content-section"] ? (t(), s("div", T, [
109
+ e.title ? (s(), t("div", w, c(e.title), 1)) : o("", !0),
110
+ e.message && !n.$slots["content-section"] ? (s(), t("p", b, c(e.message), 1)) : o("", !0),
111
+ n.$slots["content-section"] ? (s(), t("div", T, [
112
112
  l(n.$slots, "content-section", {}, void 0, !0)
113
113
  ])) : o("", !0)
114
114
  ]),
115
- e.close ? (t(), s("div", {
115
+ e.close ? (s(), t("div", {
116
116
  key: 0,
117
117
  class: "rds-e-persistent-toast__close-block",
118
- onClick: f
118
+ onClick: v
119
119
  }, [
120
120
  a(d, {
121
121
  name: "close",
@@ -125,7 +125,7 @@ import './style/persistentToast.css';const $ = { class: "alert" }, S = {
125
125
  ])) : o("", !0)
126
126
  ])
127
127
  ]),
128
- n.$slots["action-section"] ? (t(), s("div", B, [
128
+ n.$slots["action-section"] ? (s(), t("div", B, [
129
129
  l(n.$slots, "action-section", {}, void 0, !0)
130
130
  ])) : o("", !0)
131
131
  ], 2));
@@ -0,0 +1,86 @@
1
+ import { defineComponent as f, computed as r, createElementBlock as l, openBlock as u, normalizeClass as y, createElementVNode as t, renderSlot as i, createCommentVNode as m, normalizeProps as d, mergeProps as S, createVNode as k, createTextVNode as x, guardReactiveProps as B, toDisplayString as o, normalizeStyle as N } from "vue";
2
+ import { R as h } from "./icon-svg-_WCkLP8-.js";
3
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/progressBar.css';const V = { class: "progress-bar__content" }, $ = { class: "rds-flex" }, z = { class: "body-1" }, P = {
5
+ key: 0,
6
+ class: "progress-bar__percentage body-2"
7
+ }, R = /* @__PURE__ */ f({
8
+ __name: "progress-bar",
9
+ props: {
10
+ /**
11
+ * El paso actual en el proceso.
12
+ */
13
+ step: {
14
+ type: Number,
15
+ required: !0
16
+ },
17
+ /**
18
+ * El número total de pasos en el proceso.
19
+ */
20
+ maxSteps: {
21
+ type: Number,
22
+ required: !0
23
+ },
24
+ /**
25
+ * Si es true, oculta el botón de retroceso.
26
+ */
27
+ backButton: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ /**
32
+ * Si es true, muestra el porcentaje completado.
33
+ */
34
+ percentage: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ /**
39
+ * Si es true, aplica estilos inversos (texto blanco) para usar sobre fondos oscuros.
40
+ */
41
+ inverse: {
42
+ type: Boolean,
43
+ default: !1
44
+ }
45
+ },
46
+ emits: ["goBack"],
47
+ setup(a, { emit: _ }) {
48
+ const e = a, g = _, s = r(() => ({ step: e.step, maxSteps: e.maxSteps })), v = r(() => `${e.step / e.maxSteps * 100}%`), b = r(() => `${Math.round(e.step / e.maxSteps * 100)}%`), n = () => {
49
+ g("goBack");
50
+ };
51
+ return (p, c) => (u(), l("div", {
52
+ class: y(["progress-bar max-layout", { "progress-bar--inverse": e.inverse }])
53
+ }, [
54
+ t("div", V, [
55
+ t("div", $, [
56
+ e.step > 1 && a.backButton ? i(p.$slots, "back-button", d(S({ key: 0 }, { goBack: n, inverse: e.inverse })), () => [
57
+ t("button", {
58
+ class: "body-1 progress-bar__back-button",
59
+ onClick: n
60
+ }, [
61
+ k(h, { name: "arrow_left" }),
62
+ c[0] || (c[0] = x(" Atrás "))
63
+ ])
64
+ ], !0) : m("", !0),
65
+ i(p.$slots, "steps", d(B({
66
+ step: s.value.step,
67
+ maxSteps: s.value.maxSteps,
68
+ inverse: e.inverse
69
+ })), () => [
70
+ t("p", z, o(s.value.step) + " / " + o(s.value.maxSteps), 1)
71
+ ], !0)
72
+ ]),
73
+ t("div", null, [
74
+ e.percentage ? (u(), l("p", P, o(b.value), 1)) : m("", !0)
75
+ ])
76
+ ]),
77
+ t("div", {
78
+ class: "progress-bar__progress",
79
+ style: N({ "--counterWidth": v.value })
80
+ }, null, 4)
81
+ ], 2));
82
+ }
83
+ }), I = /* @__PURE__ */ C(R, [["__scopeId", "data-v-74952977"]]);
84
+ export {
85
+ I as default
86
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as V, mergeModels as c, useModel as w, ref as i, openBlock as B, createElementBlock as I, normalizeClass as r, createElementVNode as o, createVNode as m, withDirectives as f, vShow as v, vModelText as b } from "vue";
2
- import { R as y } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as V, mergeModels as c, useModel as w, ref as i, createElementBlock as B, openBlock as I, normalizeClass as r, createElementVNode as o, withDirectives as m, createVNode as v, vShow as f, vModelText as b } from "vue";
2
+ import { R as y } from "./icon-svg-_WCkLP8-.js";
3
3
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"], S = ["disabled"], x = ["disabled"], R = /* @__PURE__ */ V({
5
5
  __name: "quantity-selector",
@@ -66,7 +66,7 @@ import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"],
66
66
  }
67
67
  s.value = !1;
68
68
  };
69
- return (t, a) => (B(), I("div", {
69
+ return (t, a) => (I(), B("div", {
70
70
  class: r(["rds-e-quantity-selector", {
71
71
  "rds-e-quantity-selector--disabled": l.disabled,
72
72
  "rds-e-quantity-selector--small": l.size === "small",
@@ -81,11 +81,11 @@ import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"],
81
81
  disabled: l.disabled || e.value === 0,
82
82
  onClick: q
83
83
  }, [
84
- m(y, {
84
+ v(y, {
85
85
  name: l.deleteButton && e.value !== 0 ? "delete" : "minus"
86
86
  }, null, 8, ["name"])
87
87
  ], 10, _),
88
- f(o("input", {
88
+ m(o("input", {
89
89
  ref_key: "mainInput",
90
90
  ref: k,
91
91
  "onUpdate:modelValue": a[0] || (a[0] = (d) => e.value = d),
@@ -97,7 +97,7 @@ import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"],
97
97
  readonly: "",
98
98
  onClick: a[1] || (a[1] = (d) => s.value = !0)
99
99
  }, null, 8, M), [
100
- [v, !s.value],
100
+ [f, !s.value],
101
101
  [
102
102
  b,
103
103
  e.value,
@@ -105,7 +105,7 @@ import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"],
105
105
  { number: !0 }
106
106
  ]
107
107
  ]),
108
- f(o("input", {
108
+ m(o("input", {
109
109
  ref_key: "manualInput",
110
110
  ref: u,
111
111
  "onUpdate:modelValue": a[2] || (a[2] = (d) => e.value = d),
@@ -117,7 +117,7 @@ import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"],
117
117
  onBlur: g,
118
118
  onKeydown: N
119
119
  }, null, 40, S), [
120
- [v, s.value],
120
+ [f, s.value],
121
121
  [
122
122
  b,
123
123
  e.value,
@@ -133,7 +133,7 @@ import './style/quantitySelector.css';const _ = ["disabled"], M = ["disabled"],
133
133
  disabled: l.disabled || e.value === 99,
134
134
  onClick: C
135
135
  }, [
136
- m(y, { name: "add" })
136
+ v(y, { name: "add" })
137
137
  ], 10, x)
138
138
  ], 2));
139
139
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, mergeModels as u, useModel as s, provide as o, ref as n, openBlock as i, createElementBlock as p, renderSlot as m } from "vue";
1
+ import { defineComponent as l, mergeModels as u, useModel as s, provide as o, ref as n, createElementBlock as i, openBlock as p, renderSlot as m } from "vue";
2
2
  const c = { class: "rds-e-radio-group" }, v = /* @__PURE__ */ l({
3
3
  __name: "radio-group",
4
4
  props: /* @__PURE__ */ u({
@@ -18,7 +18,7 @@ const c = { class: "rds-e-radio-group" }, v = /* @__PURE__ */ l({
18
18
  const t = r, a = s(r, "modelValue");
19
19
  o("radioGroupValue", a), o("radioGroupName", t.groupName);
20
20
  const d = n(/* @__PURE__ */ new Set());
21
- return o("validateId", (e) => d.value.has(e) ? !1 : (d.value.add(e), !0)), (e, f) => (i(), p("div", c, [
21
+ return o("validateId", (e) => d.value.has(e) ? !1 : (d.value.add(e), !0)), (e, f) => (p(), i("div", c, [
22
22
  m(e.$slots, "default")
23
23
  ]));
24
24
  }
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, ref as f, computed as m, inject as i, onMounted as _, onBeforeUnmount as D, openBlock as r, createElementBlock as b, normalizeClass as n, createElementVNode as v, unref as E, toDisplayString as N, createCommentVNode as w, createBlock as x } from "vue";
2
- import { R as C } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as B, ref as f, computed as m, inject as i, onMounted as _, onBeforeUnmount as D, createElementBlock as b, openBlock as r, normalizeClass as n, createElementVNode as v, unref as E, createCommentVNode as w, createBlock as N, toDisplayString as x } from "vue";
2
+ import { R as C } from "./icon-svg-_WCkLP8-.js";
3
3
  import { g as G } from "./getInstance-GhoEcxLF.js";
4
4
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/radioButton.css';const L = ["id", "value", "name", "disabled", "checked"], $ = ["for"], j = /* @__PURE__ */ B({
@@ -91,8 +91,8 @@ import './style/radioButton.css';const L = ["id", "value", "name", "disabled", "
91
91
  e.label ? (r(), b("span", {
92
92
  key: 0,
93
93
  class: n(["rds-e-radio__label-text", { "rds-e-radio__label-text--disabled": e.disabled }])
94
- }, N(e.label), 3)) : w("", !0),
95
- e.label && e.icon ? (r(), x(C, {
94
+ }, x(e.label), 3)) : w("", !0),
95
+ e.label && e.icon ? (r(), N(C, {
96
96
  key: 1,
97
97
  class: n(["rds-e-radio__label-icon", { "rds-e-radio__label-icon--disabled": e.disabled }]),
98
98
  name: e.icon,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js";
1
+ import { _ as f } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as r, ref as h, computed as s, openBlock as p, createElementBlock as u, normalizeClass as f, createVNode as g, createElementVNode as m, toDisplayString as _ } from "vue";
2
- import { R as b } from "./icon-svg-DGp2yHJn.js";
1
+ import { defineComponent as r, ref as h, computed as s, createElementBlock as p, openBlock as u, normalizeClass as f, createVNode as g, createElementVNode as m, toDisplayString as _ } from "vue";
2
+ import { R as b } from "./icon-svg-_WCkLP8-.js";
3
3
  import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/selectionChip.css';const C = ["disabled"], k = { class: "rds-e-selection-chip__text" }, S = /* @__PURE__ */ r({
5
5
  __name: "selection-chip",
@@ -65,7 +65,7 @@ import './style/selectionChip.css';const C = ["disabled"], k = { class: "rds-e-s
65
65
  }), d = () => {
66
66
  e.disabled || c("onClickChip", e.filterValue);
67
67
  };
68
- return (t, x) => (p(), u("button", {
68
+ return (t, x) => (u(), p("button", {
69
69
  ref_key: "chipRef",
70
70
  ref: o,
71
71
  class: f(a.value),
@@ -1,4 +1,4 @@
1
- import { ref as d, onMounted as x, onUnmounted as g, defineComponent as L, computed as f, openBlock as _, createElementBlock as h, normalizeClass as k, createElementVNode as w, renderSlot as b, createCommentVNode as S } from "vue";
1
+ import { ref as d, onMounted as x, onUnmounted as g, defineComponent as L, computed as f, createElementBlock as _, openBlock as h, normalizeClass as k, createElementVNode as w, createCommentVNode as S, renderSlot as b } from "vue";
2
2
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import './style/sidebar.css';function E() {
4
4
  const u = {
@@ -14,20 +14,20 @@ import './style/sidebar.css';function E() {
14
14
  desktopLarge: !1,
15
15
  ultrawide: !1
16
16
  }), c = () => {
17
- for (const [n, t] of Object.entries(u)) {
17
+ for (const [o, t] of Object.entries(u)) {
18
18
  const e = window.matchMedia(t);
19
- i.value[n] = e.matches;
19
+ i.value[o] = e.matches;
20
20
  }
21
21
  };
22
22
  return x(() => {
23
- const n = Object.entries(u).map(([t, e]) => {
23
+ const o = Object.entries(u).map(([t, e]) => {
24
24
  const s = window.matchMedia(e);
25
25
  i.value[t] = s.matches;
26
26
  const r = () => c();
27
27
  return s.addEventListener("change", r), { mediaQuery: s, listener: r };
28
28
  });
29
29
  g(() => {
30
- n.forEach(({ mediaQuery: t, listener: e }) => {
30
+ o.forEach(({ mediaQuery: t, listener: e }) => {
31
31
  t.removeEventListener("change", e);
32
32
  });
33
33
  });
@@ -40,7 +40,7 @@ const z = { class: "rds-e-sidebar__sidebar__container" }, M = {
40
40
  __name: "sidebar",
41
41
  emits: ["sidebarChange"],
42
42
  setup(u, { expose: i, emit: c }) {
43
- const n = c, t = d(), e = d(!0), s = d(!1), r = d(!1), l = d(!0), a = E(), y = f(() => ({
43
+ const o = c, t = d(), e = d(!0), s = d(!1), r = d(!1), l = d(!0), a = E(), y = f(() => ({
44
44
  "rds-e-sidebar--mobile": a.value.mobile,
45
45
  "rds-e-sidebar--tablet": a.value.tablet,
46
46
  "rds-e-sidebar--desktop": a.value.desktop,
@@ -52,9 +52,9 @@ const z = { class: "rds-e-sidebar__sidebar__container" }, M = {
52
52
  "rds-e-sidebar__sidebar--overlay": r.value,
53
53
  "rds-e-sidebar__sidebar--hide": s.value
54
54
  })), m = () => {
55
- n("sidebarChange", e.value);
56
- }, v = (o) => {
57
- e.value = o, m();
55
+ o("sidebarChange", e.value);
56
+ }, v = (n) => {
57
+ e.value = n, m();
58
58
  }, p = () => {
59
59
  e.value = !0, s.value = !1, r.value = !0, l.value = !0, a.value.mobile && (s.value = !0, l.value = !1), a.value.desktop && (s.value = !1), a.value.desktopLarge && (e.value = !1, r.value = !1, l.value = !1), a.value.ultrawide && (e.value = !1, r.value = !1), m();
60
60
  };
@@ -79,7 +79,7 @@ const z = { class: "rds-e-sidebar__sidebar__container" }, M = {
79
79
  * { (state: boolean) => void } Cambia el estado del sidebar.
80
80
  */
81
81
  toogleSidebar: () => v(!e.value)
82
- }), (o, Q) => (_(), h("div", {
82
+ }), (n, Q) => (h(), _("div", {
83
83
  class: k(["rds-e-sidebar", y.value])
84
84
  }, [
85
85
  w("div", {
@@ -87,13 +87,13 @@ const z = { class: "rds-e-sidebar__sidebar__container" }, M = {
87
87
  ref: t,
88
88
  class: k(["rds-e-sidebar__sidebar", C.value])
89
89
  }, [
90
- b(o.$slots, "content", {}, () => [
90
+ b(n.$slots, "content", {}, () => [
91
91
  w("div", z, [
92
- e.value ? b(o.$slots, "collapsed", { key: 0 }, void 0, !0) : b(o.$slots, "expanded", { key: 1 }, void 0, !0)
92
+ e.value ? b(n.$slots, "collapsed", { key: 0 }, void 0, !0) : b(n.$slots, "expanded", { key: 1 }, void 0, !0)
93
93
  ])
94
94
  ], !0)
95
95
  ], 2),
96
- l.value ? (_(), h("div", M)) : S("", !0)
96
+ l.value ? (h(), _("div", M)) : S("", !0)
97
97
  ], 2));
98
98
  }
99
99
  }), N = /* @__PURE__ */ B(O, [["__scopeId", "data-v-363d1830"]]);