energy-components 1.14.1 → 1.15.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 (113) hide show
  1. package/dist/components/accordion.es.js +30 -27
  2. package/dist/components/actionButton.es.js +56 -11
  3. package/dist/components/avatar.es.js +24 -16
  4. package/dist/components/breadcrumbs.es.js +37 -29
  5. package/dist/components/button.es.js +31 -22
  6. package/dist/components/card.es.js +17 -9
  7. package/dist/components/checkbox.es.js +67 -56
  8. package/dist/components/collapsable.es.js +1 -1
  9. package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-DfOWp1XD.js → collapsable.scss_vue_type_style_index_0_src_true_lang-Bi5q6Y3n.js} +1 -1
  10. package/dist/components/directAccess.es.js +26 -18
  11. package/dist/components/dragAndDrop.es.js +1 -1
  12. package/dist/components/dropdown.es.js +27 -27
  13. package/dist/components/fileUploadItem.es.js +23 -21
  14. package/dist/components/filterChip.es.js +22 -14
  15. package/dist/components/filterTag.es.js +27 -19
  16. package/dist/components/floating-ui.vue-7LKzPqHI.js +1148 -0
  17. package/dist/components/floatingActionButton.es.js +19 -11
  18. package/dist/components/{icon-svg-DuzOdbk1.js → icon-svg-BU0OQFKH.js} +990 -742
  19. package/dist/components/iconList.es.js +1 -1
  20. package/dist/components/iconSvg.es.js +1 -1
  21. package/dist/components/index.es.js +83 -77
  22. package/dist/components/indicator.es.js +37 -29
  23. package/dist/components/infoBox.es.js +47 -39
  24. package/dist/components/link.es.js +22 -13
  25. package/dist/components/loader.es.js +22 -21
  26. package/dist/components/modal.es.js +37 -28
  27. package/dist/components/overlay.es.js +21 -11
  28. package/dist/components/pagination.es.js +164 -109
  29. package/dist/components/persistentToast.es.js +32 -24
  30. package/dist/components/popover.es.js +166 -0
  31. package/dist/components/progressBar.es.js +30 -22
  32. package/dist/components/quantitySelector.es.js +60 -48
  33. package/dist/components/radioButton.es.js +1 -1
  34. package/dist/components/selectionChip.es.js +15 -7
  35. package/dist/components/sidedrawer.es.js +1 -1
  36. package/dist/components/snackBar.es.js +131 -0
  37. package/dist/components/style/accordion.css +1 -1
  38. package/dist/components/style/actionButton.css +1 -1
  39. package/dist/components/style/avatar.css +1 -1
  40. package/dist/components/style/breadcrumbs.css +1 -1
  41. package/dist/components/style/button.css +1 -1
  42. package/dist/components/style/card.css +1 -1
  43. package/dist/components/style/checkbox.css +1 -1
  44. package/dist/components/style/directAccess.css +1 -1
  45. package/dist/components/style/fileUploadItem.css +1 -1
  46. package/dist/components/style/filterChip.css +1 -1
  47. package/dist/components/style/filterTag.css +1 -1
  48. package/dist/components/style/floatingActionButton.css +1 -1
  49. package/dist/components/style/icon-svg.css +1 -1
  50. package/dist/components/style/indicator.css +1 -1
  51. package/dist/components/style/infoBox.css +1 -1
  52. package/dist/components/style/link.css +1 -1
  53. package/dist/components/style/loader.css +1 -1
  54. package/dist/components/style/modal.css +1 -1
  55. package/dist/components/style/overlay.css +1 -1
  56. package/dist/components/style/pagination.css +1 -1
  57. package/dist/components/style/persistentToast.css +1 -1
  58. package/dist/components/style/popover.css +1 -0
  59. package/dist/components/style/progressBar.css +1 -1
  60. package/dist/components/style/quantitySelector.css +1 -1
  61. package/dist/components/style/selectionChip.css +1 -1
  62. package/dist/components/style/snackBar.css +1 -0
  63. package/dist/components/style/tabBar.css +1 -1
  64. package/dist/components/style/tag.css +1 -1
  65. package/dist/components/style/textArea.css +1 -1
  66. package/dist/components/style/toggle.css +1 -1
  67. package/dist/components/style/tooltip.css +1 -1
  68. package/dist/components/switch.es.js +1 -1
  69. package/dist/components/tabBar.es.js +23 -15
  70. package/dist/components/tableslotedcomponent.es.js +1 -1
  71. package/dist/components/tag.es.js +31 -23
  72. package/dist/components/textArea.es.js +57 -57
  73. package/dist/components/textField.es.js +1 -1
  74. package/dist/components/toggle.es.js +20 -16
  75. package/dist/components/tooltip.es.js +71 -1019
  76. package/dist/energy-components.es.js +6825 -5824
  77. package/dist/energy-components.umd.js +2 -2
  78. package/dist/style.css +1 -1
  79. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +47 -0
  80. package/dist/types/src/components/buttons/button/button.vue.d.ts +15 -0
  81. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +15 -0
  82. package/dist/types/src/components/content/avatar/avatar.vue.d.ts +15 -0
  83. package/dist/types/src/components/content/card/card.vue.d.ts +15 -0
  84. package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +1 -1
  85. package/dist/types/src/components/content/tag/tag.vue.d.ts +15 -0
  86. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +15 -0
  87. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +15 -0
  88. package/dist/types/src/components/feedback/loader/loader.vue.d.ts +1 -1
  89. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +15 -0
  90. package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +15 -0
  91. package/dist/types/src/components/feedback/snack-bar/snack-bar.vue.d.ts +180 -0
  92. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +15 -0
  93. package/dist/types/src/components/index.d.ts +2 -0
  94. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +24 -7
  95. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
  96. package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +1 -1
  97. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +15 -0
  98. package/dist/types/src/components/input/filter-tag/filter-tag.vue.d.ts +15 -0
  99. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +15 -0
  100. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +15 -0
  101. package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
  102. package/dist/types/src/components/input/toggle/toggle.vue.d.ts +4 -0
  103. package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
  104. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +15 -0
  105. package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
  106. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +47 -0
  107. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +15 -0
  108. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +15 -0
  109. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +15 -0
  110. package/dist/types/src/components/overlay/popover/popover.vue.d.ts +35 -0
  111. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +15 -0
  112. package/dist/types/tsconfig.tsbuildinfo +1 -1
  113. package/package.json +2 -2
@@ -1,8 +1,9 @@
1
- import { defineComponent as g, ref as n, watch as f, onMounted as S, onBeforeUnmount as B, createElementBlock as C, openBlock as r, normalizeClass as c, createElementVNode as s, renderSlot as V, createTextVNode as D, createBlock as m, createCommentVNode as E, toDisplayString as L, withCtx as N, createVNode as R } from "vue";
2
- import { R as k } from "./icon-svg-DuzOdbk1.js";
3
- import T from "./tooltip.es.js";
4
- import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import './style/checkbox.css';const p = ["id", "checked", "aria-label", "required", "disabled"], z = ["for"], F = /* @__PURE__ */ g({
1
+ import { defineComponent as V, computed as r, ref as c, watch as _, onMounted as D, onBeforeUnmount as E, createElementBlock as L, openBlock as u, normalizeClass as d, createElementVNode as b, renderSlot as N, createTextVNode as R, createBlock as x, createCommentVNode as T, toDisplayString as q, withCtx as U, createVNode as z } from "vue";
2
+ import { R as y } from "./icon-svg-BU0OQFKH.js";
3
+ import I from "./tooltip.es.js";
4
+ import { g as F } from "./getInstance-GhoEcxLF.js";
5
+ import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import './style/checkbox.css';const M = ["id", "checked", "aria-label", "required", "disabled"], $ = ["for"], j = /* @__PURE__ */ V({
6
7
  __name: "checkbox",
7
8
  props: {
8
9
  /**
@@ -17,7 +18,7 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
17
18
  */
18
19
  id: {
19
20
  type: [String, Number],
20
- default: ""
21
+ default: void 0
21
22
  },
22
23
  /**
23
24
  * <span>Texto de accesibilidad</span>
@@ -41,11 +42,19 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
41
42
  default: ""
42
43
  },
43
44
  /**
45
+ * @deprecated Usar `v-model` o la prop `modelValue` en su lugar.
44
46
  * <span>Estado del checkbox</span>
45
47
  */
46
48
  isChecked: {
47
49
  type: Boolean,
48
- default: !1
50
+ default: void 0
51
+ },
52
+ /**
53
+ * <span>Valor del checkbox, para uso con v-model.</span>
54
+ */
55
+ modelValue: {
56
+ type: Boolean,
57
+ default: void 0
49
58
  },
50
59
  /**
51
60
  * <span>Indica si el campo es requerido</span>
@@ -77,58 +86,60 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
77
86
  }
78
87
  },
79
88
  emits: ["update:modelValue"],
80
- setup(e, { emit: h }) {
81
- const l = e, x = h, a = n(l.isChecked), i = n(!1), d = n(!1), o = n(null);
82
- f(() => l.isChecked, (t) => {
83
- a.value = t;
84
- }), f(
85
- () => l.indeterminate,
86
- (t) => {
87
- o.value && (o.value.indeterminate = !!(t && a.value));
89
+ setup(e, { emit: w }) {
90
+ const a = e, g = w, m = r(() => a.modelValue !== void 0), f = c(a.isChecked ?? !1), i = c(!1), s = c(!1), t = c(null), p = c(`rds-e-checkbox-${F()}`), h = r(() => {
91
+ var o;
92
+ return ((o = a.id) == null ? void 0 : o.toString()) || p.value;
93
+ }), l = r(() => m.value ? a.modelValue ?? !1 : f.value);
94
+ _(
95
+ () => [a.indeterminate, l.value],
96
+ ([o, n]) => {
97
+ t.value && (t.value.indeterminate = o && n);
88
98
  },
89
99
  { immediate: !0 }
90
100
  );
91
- const v = () => {
92
- d.value && (i.value = !0);
93
- }, y = () => i.value = !1, w = (t) => {
94
- a.value = t.target.checked, x("update:modelValue", t.target.checked);
95
- }, u = (t) => {
96
- t.key === "Tab" && (d.value = !0);
97
- }, b = () => {
98
- d.value = !1;
99
- };
100
- return S(() => {
101
- o.value && (o.value.indeterminate = !!(l.indeterminate && a.value)), window.addEventListener("keydown", u), window.addEventListener("mousedown", b);
102
- }), B(() => {
103
- window.removeEventListener("keydown", u), window.removeEventListener("mousedown", b);
104
- }), (t, I) => (r(), C("div", {
105
- class: c(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": i.value }])
101
+ const C = (o) => {
102
+ const n = o.target.checked;
103
+ m.value || (f.value = n), g("update:modelValue", n);
104
+ }, k = (o) => {
105
+ o.key === "Tab" && (s.value = !0);
106
+ }, v = () => {
107
+ s.value = !1;
108
+ }, S = () => {
109
+ s.value && (i.value = !0);
110
+ }, B = () => i.value = !1;
111
+ return D(() => {
112
+ t.value && (t.value.indeterminate = !!(a.indeterminate && l.value)), window.addEventListener("keydown", k), window.addEventListener("mousedown", v);
113
+ }), E(() => {
114
+ window.removeEventListener("keydown", k), window.removeEventListener("mousedown", v);
115
+ }), (o, n) => (u(), L("div", {
116
+ class: d(["rds-e-checkbox__container", { "rds-e-checkbox__container--focused": i.value }])
106
117
  }, [
107
- s("input", {
108
- id: e.id.toString(),
118
+ b("input", {
119
+ id: h.value,
109
120
  ref_key: "inputRef",
110
- ref: o,
111
- checked: e.isChecked,
121
+ ref: t,
122
+ checked: l.value,
112
123
  "aria-label": e.accessibilityLabel,
113
124
  type: "checkbox",
114
- class: c(["rds-e-checkbox", { "rds-e-checkbox--error": e.error }]),
125
+ class: d(["rds-e-checkbox", { "rds-e-checkbox--error": e.error }]),
115
126
  required: e.required,
116
127
  disabled: e.disabled,
117
- onChange: w,
118
- onFocus: v,
119
- onBlur: y
120
- }, null, 42, p),
121
- s("label", {
122
- for: e.id.toString(),
123
- class: c(["rds-e-checkbox__label", {
128
+ onChange: C,
129
+ onFocus: S,
130
+ onBlur: B
131
+ }, null, 42, M),
132
+ b("label", {
133
+ for: h.value,
134
+ class: d(["rds-e-checkbox__label", {
124
135
  "rds-e-checkbox__label--disabled": e.disabled,
125
- "rds-e-checkbox__label--checked": a.value,
126
- "rds-e-checkbox__label--indeterminate": e.indeterminate && a.value
136
+ "rds-e-checkbox__label--checked": l.value,
137
+ "rds-e-checkbox__label--indeterminate": e.indeterminate && l.value
127
138
  }])
128
139
  }, [
129
- V(t.$slots, "label-text", {}, () => [
130
- s("span", {
131
- class: c([
140
+ N(o.$slots, "label-text", {}, () => [
141
+ b("span", {
142
+ class: d([
132
143
  "rds-e-checkbox__label-box",
133
144
  {
134
145
  "rds-e-checkbox__label-box--disabled": e.disabled,
@@ -136,33 +147,33 @@ import './style/checkbox.css';const p = ["id", "checked", "aria-label", "require
136
147
  }
137
148
  ])
138
149
  }, [
139
- D(L(e.label) + " ", 1),
140
- e.icon && e.iconTooltip ? (r(), m(T, {
150
+ R(q(e.label) + " ", 1),
151
+ e.icon && e.iconTooltip ? (u(), x(I, {
141
152
  key: 0,
142
153
  content: e.iconTooltip,
143
154
  placement: "top",
144
155
  "offset-space": 8
145
156
  }, {
146
- default: N(() => [
147
- R(k, {
157
+ default: U(() => [
158
+ z(y, {
148
159
  class: "rds-e-checkbox__label-box--icon",
149
160
  name: e.icon,
150
161
  size: "sm"
151
162
  }, null, 8, ["name"])
152
163
  ]),
153
164
  _: 1
154
- }, 8, ["content"])) : e.icon ? (r(), m(k, {
165
+ }, 8, ["content"])) : e.icon ? (u(), x(y, {
155
166
  key: 1,
156
167
  class: "rds-e-checkbox__label-box--icon",
157
168
  name: e.icon,
158
169
  size: "sm"
159
- }, null, 8, ["name"])) : E("", !0)
170
+ }, null, 8, ["name"])) : T("", !0)
160
171
  ], 2)
161
172
  ], !0)
162
- ], 10, z)
173
+ ], 10, $)
163
174
  ], 2));
164
175
  }
165
- }), $ = /* @__PURE__ */ q(F, [["__scopeId", "data-v-472a518b"]]);
176
+ }), P = /* @__PURE__ */ K(j, [["__scopeId", "data-v-bee9602e"]]);
166
177
  export {
167
- $ as default
178
+ P as default
168
179
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-DfOWp1XD.js";
1
+ import { _ as f } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-Bi5q6Y3n.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, ref as d, computed as r, watch as f, nextTick as c, createElementBlock as B, openBlock as m, normalizeClass as i, createElementVNode as a, withKeys as C, createBlock as S, createCommentVNode as $, createVNode as I, toDisplayString as v, renderSlot as N, createTextVNode as V } from "vue";
2
- import { R as h } from "./icon-svg-DuzOdbk1.js";
2
+ import { R as h } from "./icon-svg-BU0OQFKH.js";
3
3
  import './style/collapsable.css';const H = ["id", "aria-expanded", "aria-controls", "disabled"], x = { class: "rds-e-collapsable__header-title" }, D = { class: "rds-e-collapsable__header-title-text" }, E = ["id", "aria-labelledby"], W = /* @__PURE__ */ w({
4
4
  __name: "collapsable",
5
5
  props: {
@@ -1,5 +1,5 @@
1
- import { defineComponent as j, toRefs as E, computed as o, createBlock as d, openBlock as i, resolveDynamicComponent as I, unref as t, normalizeClass as N, withCtx as O, renderSlot as u, createElementVNode as m, createCommentVNode as w, createElementBlock as T, normalizeStyle as b, toDisplayString as V } from "vue";
2
- import { R as S } from "./icon-svg-DuzOdbk1.js";
1
+ import { defineComponent as j, toRefs as E, computed as o, createBlock as d, openBlock as l, resolveDynamicComponent as I, unref as t, normalizeClass as N, withCtx as O, renderSlot as u, createElementVNode as m, createCommentVNode as b, createElementBlock as T, normalizeStyle as w, toDisplayString as V } from "vue";
2
+ import { R as S } from "./icon-svg-BU0OQFKH.js";
3
3
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwork-container" }, M = ["src", "alt", "aria-hidden"], F = { class: "rds-e-direct-access__text-container" }, G = { class: "rds-e-direct-access__text" }, H = /* @__PURE__ */ j({
5
5
  __name: "direct-access",
@@ -19,7 +19,7 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
19
19
  layout: {
20
20
  type: String,
21
21
  default: "horizontal",
22
- validator: (l) => ["horizontal", "vertical"].includes(l)
22
+ validator: (i) => ["horizontal", "vertical"].includes(i)
23
23
  },
24
24
  /**
25
25
  * Objeto para configurar el arte gráfico (icono o microilustración).
@@ -68,16 +68,23 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
68
68
  useRouterLink: {
69
69
  type: Boolean,
70
70
  default: !1
71
+ },
72
+ /**
73
+ * ID del direct-access para testing
74
+ */
75
+ id: {
76
+ type: String,
77
+ default: void 0
71
78
  }
72
79
  },
73
80
  emits: ["click"],
74
- setup(l, { emit: g }) {
75
- const x = l, z = g, { text: _, layout: C, disabled: c, arrow: p, artwork: r, ariaLabel: $, linkTo: a, useRouterLink: B } = E(x), L = o(() => [
81
+ setup(i, { emit: g }) {
82
+ const x = i, z = g, { text: p, layout: C, disabled: c, arrow: _, artwork: r, ariaLabel: $, linkTo: a, useRouterLink: B } = E(x), L = o(() => [
76
83
  "rds-e-direct-access",
77
84
  `rds-e-direct-access--${C.value}`,
78
85
  { "rds-e-direct-access--disabled": c.value },
79
- { "rds-e-direct-access--with-arrow": p.value }
80
- ]), n = o(() => B.value && !!a.value), R = o(() => $.value || _.value), f = o(() => {
86
+ { "rds-e-direct-access--with-arrow": _.value }
87
+ ]), n = o(() => B.value && !!a.value), R = o(() => $.value || p.value), f = o(() => {
81
88
  var e;
82
89
  return (e = r.value) != null && e.microillustration && (r.value.microillustration.path || r.value.microillustration.url) || "";
83
90
  }), v = (e) => {
@@ -91,7 +98,8 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
91
98
  }
92
99
  z("click", e);
93
100
  };
94
- return (e, s) => (i(), d(I(t(a) ? n.value ? "router-link" : "a" : "button"), {
101
+ return (e, s) => (l(), d(I(t(a) ? n.value ? "router-link" : "a" : "button"), {
102
+ id: i.id,
95
103
  type: t(a) ? void 0 : "button",
96
104
  href: !n.value && t(a) ? t(a) : void 0,
97
105
  to: n.value && t(a) ? t(a) : void 0,
@@ -106,41 +114,41 @@ import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwo
106
114
  u(e.$slots, "artwork", {}, () => {
107
115
  var k, y, h;
108
116
  return [
109
- (y = (k = t(r)) == null ? void 0 : k.icon) != null && y.name ? (i(), d(S, {
117
+ (y = (k = t(r)) == null ? void 0 : k.icon) != null && y.name ? (l(), d(S, {
110
118
  key: 0,
111
119
  name: t(r).icon.name,
112
- style: b(v(t(r).icon)),
120
+ style: w(v(t(r).icon)),
113
121
  class: "rds-e-direct-access__artwork-item rds-e-direct-access__artwork-item--icon",
114
122
  "aria-hidden": "true"
115
- }, null, 8, ["name", "style"])) : (h = t(r)) != null && h.microillustration && f.value ? (i(), T("img", {
123
+ }, null, 8, ["name", "style"])) : (h = t(r)) != null && h.microillustration && f.value ? (l(), T("img", {
116
124
  key: 1,
117
125
  src: f.value,
118
126
  alt: t(r).microillustration.alt || "",
119
- style: b(v(t(r).microillustration)),
127
+ style: w(v(t(r).microillustration)),
120
128
  class: "rds-e-direct-access__artwork-item rds-e-direct-access__artwork-item--microillustration",
121
129
  "aria-hidden": !t(r).microillustration.alt
122
- }, null, 12, M)) : w("", !0)
130
+ }, null, 12, M)) : b("", !0)
123
131
  ];
124
132
  }, !0)
125
133
  ]),
126
134
  m("div", F, [
127
135
  u(e.$slots, "text", {}, () => [
128
- m("span", G, V(t(_)), 1)
136
+ m("span", G, V(t(p)), 1)
129
137
  ], !0)
130
138
  ]),
131
- t(p) ? (i(), d(S, {
139
+ t(_) ? (l(), d(S, {
132
140
  key: 0,
133
141
  name: "arrow_right",
134
142
  small: "",
135
143
  class: "rds-e-direct-access__arrow",
136
144
  "aria-hidden": "true"
137
- })) : w("", !0)
145
+ })) : b("", !0)
138
146
  ], !0)
139
147
  ]),
140
148
  _: 3
141
- }, 8, ["type", "href", "to", "class", "disabled", "aria-label"]));
149
+ }, 8, ["id", "type", "href", "to", "class", "disabled", "aria-label"]));
142
150
  }
143
- }), Q = /* @__PURE__ */ q(H, [["__scopeId", "data-v-d6ee1420"]]);
151
+ }), Q = /* @__PURE__ */ q(H, [["__scopeId", "data-v-9bb4e0b7"]]);
144
152
  export {
145
153
  Q as default
146
154
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, ref as _, computed as c, createElementBlock as b, openBlock as x, withModifiers as f, normalizeClass as q, createElementVNode as u, renderSlot as L, createVNode as M, createCommentVNode as z, toDisplayString as D } from "vue";
2
2
  import { g as A } from "./getInstance-GhoEcxLF.js";
3
- import { R as U } from "./icon-svg-DuzOdbk1.js";
3
+ import { R as U } from "./icon-svg-BU0OQFKH.js";
4
4
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/dragAndDrop.css';const O = ["id", "accept", "multiple", "disabled"], P = ["for"], j = { class: "rds-e-drag-and-drop__icon-wrapper" }, G = { class: "rds-e-drag-and-drop__text-container" }, H = { class: "rds-e-drag-and-drop__text" }, J = {
6
6
  key: 0,
@@ -1,15 +1,15 @@
1
- import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as D, computed as i, provide as U, onMounted as be, nextTick as R, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as a, createVNode as O, mergeProps as Q, withModifiers as n, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as S, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } from "vue";
1
+ import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as D, computed as i, provide as U, onMounted as be, nextTick as F, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as a, createVNode as S, mergeProps as Q, withModifiers as n, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as O, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } from "vue";
2
2
  import he from "./multiselect.es.js";
3
3
  import ke from "./checkbox.es.js";
4
4
  import { _ as $e } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
5
  import Ce from "./radioButton.es.js";
6
- import { R as Y } from "./icon-svg-DuzOdbk1.js";
6
+ import { R as Y } from "./icon-svg-BU0OQFKH.js";
7
7
  import Z from "./textField.es.js";
8
8
  import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__option" }, xe = { class: "rds-e-dropdown__option-container" }, Ve = { class: "rds-e-dropdown__option--prepend" }, Be = { class: "rds-e-dropdown__option--content" }, Ae = {
9
+ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__option" }, xe = { class: "rds-e-dropdown__option-container" }, Ve = { class: "rds-e-dropdown__option--prepend" }, Be = { class: "rds-e-dropdown__option--content" }, Ae = {
10
10
  key: 0,
11
11
  class: "rds-e-dropdown__option-detail"
12
- }, Fe = { key: 1 }, Re = {
12
+ }, Re = { key: 1 }, Fe = {
13
13
  key: 0,
14
14
  class: "rds-e-dropdown__option--append"
15
15
  }, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
@@ -251,11 +251,11 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
251
251
  }, ue = (e) => {
252
252
  k("close", e, s.id);
253
253
  }, ce = (e) => {
254
- R(() => {
254
+ F(() => {
255
255
  k("select", e);
256
256
  });
257
257
  }, pe = () => {
258
- R(() => {
258
+ F(() => {
259
259
  if ($.value) {
260
260
  const e = h.value.filter(
261
261
  (t) => B(t)
@@ -272,14 +272,14 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
272
272
  m.value.select(e), V = !0;
273
273
  }, A = () => {
274
274
  m.value.activate();
275
- }, F = () => {
275
+ }, R = () => {
276
276
  m.value.deactivate();
277
277
  }, W = () => {
278
278
  m.value.toggle(), V = !0;
279
279
  }, z = () => {
280
- le.value ? F() : A();
280
+ le.value ? R() : A();
281
281
  }, me = () => {
282
- C.value && y.value && (te(), A(), R(() => {
282
+ C.value && y.value && (te(), A(), F(() => {
283
283
  y.value.focus();
284
284
  }));
285
285
  }, G = (e) => {
@@ -291,12 +291,12 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
291
291
  const t = e.target, l = !((g = (f = m.value) == null ? void 0 : f.$el) != null && g.contains(t));
292
292
  if (_.value) {
293
293
  const b = y.value && !y.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
294
- l && b && (_.value = !1, F());
295
- } else l && F();
294
+ l && b && (_.value = !1, R());
295
+ } else l && R();
296
296
  };
297
297
  return be(() => {
298
298
  var e;
299
- (e = m.value) != null && e.$el && p.value.push(m.value.$el), R(() => {
299
+ (e = m.value) != null && e.$el && p.value.push(m.value.$el), F(() => {
300
300
  var t;
301
301
  if (C.value && ((t = y.value) != null && t.$el)) {
302
302
  p.value.push(y.value.$el);
@@ -314,14 +314,14 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
314
314
  /**
315
315
  * Cierra el dropdown
316
316
  */
317
- deactivate: F
317
+ deactivate: R
318
318
  }), (e, t) => (u(), w("div", {
319
319
  class: T(["rds-e-dropdown", {
320
320
  "rds-e-dropdown--text-only": a(j),
321
321
  "rds-e-dropdown--inverse": o.inverse
322
322
  }])
323
323
  }, [
324
- O(he, Q({
324
+ S(he, Q({
325
325
  ref_key: "multiselect",
326
326
  ref: m,
327
327
  modelValue: r.value,
@@ -356,7 +356,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
356
356
  onMousedown: n(z, ["prevent", "stop"])
357
357
  }, [
358
358
  c("span", null, E(q.value || o.label), 1),
359
- O(a(Y), {
359
+ S(a(Y), {
360
360
  name: "arrow_down",
361
361
  "aria-hidden": "true",
362
362
  class: T(["rds-e-dropdown__input-caret", {
@@ -364,7 +364,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
364
364
  }]),
365
365
  onMousedown: n(z, ["prevent", "stop"])
366
366
  }, null, 8, ["class"])
367
- ], 42, Oe)) : (u(), K(a(Z), {
367
+ ], 42, Se)) : (u(), K(a(Z), {
368
368
  key: 1,
369
369
  id: `multiselect-dropdown-${o.id}`,
370
370
  modelValue: q.value,
@@ -378,7 +378,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
378
378
  onMousedown: n(W, ["prevent"])
379
379
  }, X({
380
380
  "right-icon": d(() => [
381
- O(a(Y), {
381
+ S(a(Y), {
382
382
  name: "arrow_down",
383
383
  "aria-hidden": "true",
384
384
  class: T(["rds-e-dropdown__input-caret", {
@@ -402,7 +402,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
402
402
  t[14] || (t[14] = c("span", null, null, -1))
403
403
  ]),
404
404
  option: d(({ option: l, search: f, index: g }) => [
405
- c("div", Se, [
405
+ c("div", Oe, [
406
406
  c("div", xe, [
407
407
  c("div", Ve, [
408
408
  a($) ? (u(), K(a(ke), {
@@ -419,7 +419,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
419
419
  "group-name": `group-${o.id}`
420
420
  }, {
421
421
  default: d(() => [
422
- O(a(Ce), {
422
+ S(a(Ce), {
423
423
  id: `${g}-${typeof l == "object" ? l.id : g}`,
424
424
  small: o.small,
425
425
  option: typeof l == "object" ? l.id : l,
@@ -429,7 +429,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
429
429
  }, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
430
430
  ]),
431
431
  _: 2
432
- }, 1032, ["modelValue", "group-name"])) : S("", !0)
432
+ }, 1032, ["modelValue", "group-name"])) : O("", !0)
433
433
  ]),
434
434
  c("div", Be, [
435
435
  v(e.$slots, "singleLabel", { option: l }, () => {
@@ -437,19 +437,19 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
437
437
  return [
438
438
  (b = N.value) != null && b.label ? (u(), w(ge, { key: 0 }, [
439
439
  c("span", null, E(l.label), 1),
440
- l != null && l.detail ? (u(), w("span", Ae, E(l.detail), 1)) : S("", !0)
441
- ], 64)) : (u(), w("span", Fe, E(l), 1))
440
+ l != null && l.detail ? (u(), w("span", Ae, E(l.detail), 1)) : O("", !0)
441
+ ], 64)) : (u(), w("span", Re, E(l), 1))
442
442
  ];
443
443
  }, !0)
444
444
  ])
445
445
  ]),
446
- e.$slots.optionAppend ? (u(), w("div", Re, [
446
+ e.$slots.optionAppend ? (u(), w("div", Fe, [
447
447
  v(e.$slots, "optionAppend", {
448
448
  option: l,
449
449
  search: f,
450
450
  index: g
451
451
  }, void 0, !0)
452
- ])) : S("", !0)
452
+ ])) : O("", !0)
453
453
  ])
454
454
  ]),
455
455
  _: 2
@@ -505,7 +505,7 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
505
505
  }, ["stop"]))
506
506
  }, [
507
507
  c("div", Te, [
508
- O(a(Z), Q({
508
+ S(a(Z), Q({
509
509
  ref_key: "textFieldInput",
510
510
  ref: y,
511
511
  modelValue: I.value,
@@ -518,12 +518,12 @@ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__
518
518
  }, ["stop"]))
519
519
  }), null, 16, ["modelValue"])
520
520
  ])
521
- ], 32)) : S("", !0),
521
+ ], 32)) : O("", !0),
522
522
  e.$slots.beforeList ? (u(), w("div", Ee, [
523
523
  c("div", Le, [
524
524
  v(e.$slots, "beforeList", {}, void 0, !0)
525
525
  ])
526
- ])) : S("", !0)
526
+ ])) : O("", !0)
527
527
  ]),
528
528
  key: "4"
529
529
  } : void 0,
@@ -1,20 +1,20 @@
1
1
  import { defineComponent as M, ref as N, computed as c, createElementBlock as l, openBlock as o, normalizeClass as $, createElementVNode as r, renderSlot as v, createVNode as p, createCommentVNode as n, toDisplayString as m, withModifiers as I } from "vue";
2
- import { R as g } from "./icon-svg-DuzOdbk1.js";
2
+ import { R as g } from "./icon-svg-BU0OQFKH.js";
3
3
  import z from "./progressBar.es.js";
4
4
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__icon-container" }, w = { class: "rds-e-file-upload-item__details" }, E = { class: "rds-e-file-upload-item__info-wrapper" }, F = { class: "rds-e-file-upload-item__name" }, x = {
5
+ import './style/fileUploadItem.css';const R = ["id"], w = { class: "rds-e-file-upload-item__icon-container" }, E = { class: "rds-e-file-upload-item__details" }, F = { class: "rds-e-file-upload-item__info-wrapper" }, x = { class: "rds-e-file-upload-item__name" }, D = {
6
6
  key: 0,
7
7
  class: "rds-e-file-upload-item__meta"
8
- }, D = { class: "rds-e-file-upload-item__size" }, P = {
8
+ }, P = { class: "rds-e-file-upload-item__size" }, V = {
9
9
  key: 0,
10
10
  class: "rds-e-file-upload-item__time-remaining"
11
- }, V = {
11
+ }, q = {
12
12
  key: 1,
13
13
  class: "rds-e-file-upload-item__error-message"
14
- }, q = {
14
+ }, T = {
15
15
  key: 0,
16
16
  class: "rds-e-file-upload-item__progress-indicator-container"
17
- }, T = { class: "rds-e-file-upload-item__action" }, j = ["aria-label", "disabled"], A = /* @__PURE__ */ M({
17
+ }, j = { class: "rds-e-file-upload-item__action" }, A = ["aria-label", "disabled"], G = /* @__PURE__ */ M({
18
18
  __name: "file-upload-item",
19
19
  props: {
20
20
  /**
@@ -121,11 +121,12 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
121
121
  !s.disabled && t && b("action", { actionType: t.type, fileId: s.id });
122
122
  };
123
123
  return (t, i) => (o(), l("div", {
124
+ id: e.id,
124
125
  class: $(["rds-e-file-upload-item rds-radius-inputs", [y.value]]),
125
126
  onMouseover: i[1] || (i[1] = (d) => f.value = !0),
126
127
  onMouseleave: i[2] || (i[2] = (d) => f.value = !1)
127
128
  }, [
128
- r("div", R, [
129
+ r("div", w, [
129
130
  v(t.$slots, "file-icon", {}, () => [
130
131
  p(g, {
131
132
  name: h.value,
@@ -134,17 +135,18 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
134
135
  }, null, 8, ["name"])
135
136
  ], !0)
136
137
  ]),
137
- r("div", w, [
138
- r("div", E, [
139
- r("span", F, m(e.fileName), 1),
140
- a.value !== "error" ? (o(), l("div", x, [
141
- r("span", D, m(S.value), 1),
142
- a.value === "uploading" && e.timeRemaining ? (o(), l("span", P, m(e.timeRemaining), 1)) : n("", !0)
138
+ r("div", E, [
139
+ r("div", F, [
140
+ r("span", x, m(e.fileName), 1),
141
+ a.value !== "error" ? (o(), l("div", D, [
142
+ r("span", P, m(S.value), 1),
143
+ a.value === "uploading" && e.timeRemaining ? (o(), l("span", V, m(e.timeRemaining), 1)) : n("", !0)
143
144
  ])) : n("", !0),
144
- a.value === "error" && e.errorMessage ? (o(), l("div", V, m(e.errorMessage), 1)) : n("", !0)
145
+ a.value === "error" && e.errorMessage ? (o(), l("div", q, m(e.errorMessage), 1)) : n("", !0)
145
146
  ]),
146
- a.value === "uploading" && e.showProgressBar ? (o(), l("div", q, [
147
+ a.value === "uploading" && e.showProgressBar ? (o(), l("div", T, [
147
148
  p(z, {
149
+ id: e.id,
148
150
  class: "rds-e-file-upload-item__progress-bar",
149
151
  step: e.progress,
150
152
  "max-steps": 100,
@@ -153,10 +155,10 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
153
155
  "white-bar": "",
154
156
  "hide-counter": "",
155
157
  inverse: ""
156
- }, null, 8, ["step"])
158
+ }, null, 8, ["id", "step"])
157
159
  ])) : n("", !0)
158
160
  ]),
159
- r("div", T, [
161
+ r("div", j, [
160
162
  v(t.$slots, "action", {}, () => [
161
163
  e.action ? (o(), l("button", {
162
164
  key: 0,
@@ -171,12 +173,12 @@ import './style/fileUploadItem.css';const R = { class: "rds-e-file-upload-item__
171
173
  class: "rds-e-file-upload-item__action-icon",
172
174
  "aria-hidden": "true"
173
175
  }, null, 8, ["name"])
174
- ], 8, j)) : n("", !0)
176
+ ], 8, A)) : n("", !0)
175
177
  ], !0)
176
178
  ])
177
- ], 34));
179
+ ], 42, R));
178
180
  }
179
- }), U = /* @__PURE__ */ C(A, [["__scopeId", "data-v-1de9506e"]]);
181
+ }), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-acd37774"]]);
180
182
  export {
181
- U as default
183
+ J as default
182
184
  };