energy-components 1.14.2 → 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 (112) 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/toggle.css +1 -1
  66. package/dist/components/style/tooltip.css +1 -1
  67. package/dist/components/switch.es.js +1 -1
  68. package/dist/components/tabBar.es.js +23 -15
  69. package/dist/components/tableslotedcomponent.es.js +1 -1
  70. package/dist/components/tag.es.js +31 -23
  71. package/dist/components/textArea.es.js +1 -1
  72. package/dist/components/textField.es.js +1 -1
  73. package/dist/components/toggle.es.js +20 -16
  74. package/dist/components/tooltip.es.js +71 -1019
  75. package/dist/energy-components.es.js +6845 -5844
  76. package/dist/energy-components.umd.js +2 -2
  77. package/dist/style.css +1 -1
  78. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +47 -0
  79. package/dist/types/src/components/buttons/button/button.vue.d.ts +15 -0
  80. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +15 -0
  81. package/dist/types/src/components/content/avatar/avatar.vue.d.ts +15 -0
  82. package/dist/types/src/components/content/card/card.vue.d.ts +15 -0
  83. package/dist/types/src/components/content/collapsable/collapsable.vue.d.ts +1 -1
  84. package/dist/types/src/components/content/tag/tag.vue.d.ts +15 -0
  85. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +15 -0
  86. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +15 -0
  87. package/dist/types/src/components/feedback/loader/loader.vue.d.ts +1 -1
  88. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +15 -0
  89. package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +15 -0
  90. package/dist/types/src/components/feedback/snack-bar/snack-bar.vue.d.ts +180 -0
  91. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +15 -0
  92. package/dist/types/src/components/index.d.ts +2 -0
  93. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +24 -7
  94. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +1 -1
  95. package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +1 -1
  96. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +15 -0
  97. package/dist/types/src/components/input/filter-tag/filter-tag.vue.d.ts +15 -0
  98. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +15 -0
  99. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +15 -0
  100. package/dist/types/src/components/input/switch/switch.vue.d.ts +1 -1
  101. package/dist/types/src/components/input/toggle/toggle.vue.d.ts +4 -0
  102. package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
  103. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +15 -0
  104. package/dist/types/src/components/navigation/link/link.vue.d.ts +15 -0
  105. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +47 -0
  106. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +15 -0
  107. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +15 -0
  108. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +15 -0
  109. package/dist/types/src/components/overlay/popover/popover.vue.d.ts +35 -0
  110. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +15 -0
  111. package/dist/types/tsconfig.tsbuildinfo +1 -1
  112. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, ref as a, computed as v, createElementBlock as s, openBlock as i, Fragment as u, withDirectives as f, createElementVNode as r, vModelText as C, renderList as L, normalizeClass as x, createVNode as g, toDisplayString as h } from "vue";
2
- import { i as m, R as k } from "./icon-svg-DuzOdbk1.js";
2
+ import { i as m, R as k } from "./icon-svg-BU0OQFKH.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/iconList.css';const y = { class: "rds-e-icon-list" }, D = ["onClick"], N = /* @__PURE__ */ p({
5
5
  __name: "icon-list",
@@ -1,4 +1,4 @@
1
- import { R as a } from "./icon-svg-DuzOdbk1.js";
1
+ import { R as a } from "./icon-svg-BU0OQFKH.js";
2
2
  import "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  export {
4
4
  a as default
@@ -1,11 +1,11 @@
1
- import { R as i } from "./icon-svg-DuzOdbk1.js";
1
+ import { R as i } from "./icon-svg-BU0OQFKH.js";
2
2
  import a from "./button.es.js";
3
3
  import e from "./floatingActionButton.es.js";
4
4
  import m from "./actionButton.es.js";
5
5
  import S from "./checkbox.es.js";
6
6
  import D from "./textField.es.js";
7
- import R from "./textArea.es.js";
8
- import p from "./switch.es.js";
7
+ import p from "./textArea.es.js";
8
+ import R from "./switch.es.js";
9
9
  import n from "./radioButton.es.js";
10
10
  import { _ as s } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
11
11
  import c from "./dropdown.es.js";
@@ -16,80 +16,84 @@ import u from "./selectionChip.es.js";
16
16
  import g from "./filterChip.es.js";
17
17
  import b from "./dragAndDrop.es.js";
18
18
  import A from "./fileUploadItem.es.js";
19
- import T from "./filterTag.es.js";
20
- import B from "./tag.es.js";
21
- import C from "./accordionGroup.es.js";
22
- import _ from "./accordion.es.js";
23
- import h from "./divider.es.js";
24
- import x from "./card.es.js";
25
- import I from "./tablepaginatedcomponent.es.js";
26
- import v from "./avatar.es.js";
27
- import { _ as w } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-DfOWp1XD.js";
28
- import F from "./link.es.js";
29
- import P from "./breadcrumbs.es.js";
30
- import y from "./tabBar.es.js";
31
- import k from "./pagination.es.js";
19
+ import B from "./filterTag.es.js";
20
+ import T from "./tag.es.js";
21
+ import v from "./accordionGroup.es.js";
22
+ import C from "./accordion.es.js";
23
+ import _ from "./divider.es.js";
24
+ import h from "./card.es.js";
25
+ import x from "./tablepaginatedcomponent.es.js";
26
+ import I from "./avatar.es.js";
27
+ import { _ as F } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-Bi5q6Y3n.js";
28
+ import P from "./link.es.js";
29
+ import k from "./breadcrumbs.es.js";
30
+ import w from "./tabBar.es.js";
31
+ import y from "./pagination.es.js";
32
32
  import G from "./directAccess.es.js";
33
33
  import L from "./indicator.es.js";
34
34
  import M from "./persistentToast.es.js";
35
- import O from "./infoBox.es.js";
36
- import U from "./progressBar.es.js";
37
- import j from "./loader.es.js";
38
- import Q from "./modal.es.js";
39
- import V from "./overlay.es.js";
40
- import q from "./tooltip.es.js";
41
- import z from "./sidebar.es.js";
42
- import K from "./sidedrawer.es.js";
35
+ import O from "./snackBar.es.js";
36
+ import U from "./infoBox.es.js";
37
+ import j from "./progressBar.es.js";
38
+ import Q from "./loader.es.js";
39
+ import V from "./modal.es.js";
40
+ import q from "./overlay.es.js";
41
+ import z from "./tooltip.es.js";
42
+ import K from "./popover.es.js";
43
+ import $ from "./sidebar.es.js";
44
+ import E from "./sidedrawer.es.js";
43
45
  const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
46
  __proto__: null,
45
- RDSAccordion: _,
46
- RDSAccordionGroup: C,
47
+ RDSAccordion: C,
48
+ RDSAccordionGroup: v,
47
49
  RDSActionButton: m,
48
- RDSAvatar: v,
49
- RDSBreadcrumbs: P,
50
+ RDSAvatar: I,
51
+ RDSBreadcrumbs: k,
50
52
  RDSButton: a,
51
- RDSCard: x,
53
+ RDSCard: h,
52
54
  RDSCheckbox: S,
53
- RDSCollapsable: w,
55
+ RDSCollapsable: F,
54
56
  RDSDatePicker: f,
55
57
  RDSDirectAccess: G,
56
- RDSDivider: h,
58
+ RDSDivider: _,
57
59
  RDSDragAndDrop: b,
58
60
  RDSDropdown: c,
59
61
  RDSFileUploadItem: A,
60
62
  RDSFilterChip: g,
61
- RDSFilterTag: T,
63
+ RDSFilterTag: B,
62
64
  RDSFloatinActionButton: e,
63
65
  RDSIconSvg: i,
64
66
  RDSIndicator: L,
65
- RDSInfoBox: O,
66
- RDSLink: F,
67
- RDSLoader: j,
68
- RDSModal: Q,
69
- RDSOverlay: V,
70
- RDSPagination: k,
67
+ RDSInfoBox: U,
68
+ RDSLink: P,
69
+ RDSLoader: Q,
70
+ RDSModal: V,
71
+ RDSOverlay: q,
72
+ RDSPagination: y,
71
73
  RDSPersistentToast: M,
72
- RDSProgressBar: U,
74
+ RDSPopover: K,
75
+ RDSProgressBar: j,
73
76
  RDSQuantitySelector: d,
74
77
  RDSRadioButton: n,
75
78
  RDSRadioGroup: s,
76
79
  RDSSelectionChip: u,
77
- RDSSidebar: z,
78
- RDSSidedrawer: K,
79
- RDSSwitch: p,
80
- RDSTabBar: y,
81
- RDSTable: I,
82
- RDSTag: B,
83
- RDSTextArea: R,
80
+ RDSSidebar: $,
81
+ RDSSidedrawer: E,
82
+ RDSSnackBar: O,
83
+ RDSSwitch: R,
84
+ RDSTabBar: w,
85
+ RDSTable: x,
86
+ RDSTag: T,
87
+ RDSTextArea: p,
84
88
  RDSTextField: D,
85
89
  RDSToggle: l,
86
- RDSTooltip: q
90
+ RDSTooltip: z
87
91
  }, Symbol.toStringTag, { value: "Module" }));
88
- let $;
89
- function Lo(o) {
90
- $ = o;
92
+ let H;
93
+ function jo(o) {
94
+ H = o;
91
95
  }
92
- const Mo = {
96
+ const Qo = {
93
97
  install: (o) => {
94
98
  for (const r in t)
95
99
  o.component(
@@ -99,49 +103,51 @@ const Mo = {
99
103
  }
100
104
  };
101
105
  export {
102
- _ as RDSAccordion,
103
- C as RDSAccordionGroup,
106
+ C as RDSAccordion,
107
+ v as RDSAccordionGroup,
104
108
  m as RDSActionButton,
105
- v as RDSAvatar,
106
- P as RDSBreadcrumbs,
109
+ I as RDSAvatar,
110
+ k as RDSBreadcrumbs,
107
111
  a as RDSButton,
108
- x as RDSCard,
112
+ h as RDSCard,
109
113
  S as RDSCheckbox,
110
- w as RDSCollapsable,
114
+ F as RDSCollapsable,
111
115
  f as RDSDatePicker,
112
116
  G as RDSDirectAccess,
113
- h as RDSDivider,
117
+ _ as RDSDivider,
114
118
  b as RDSDragAndDrop,
115
119
  c as RDSDropdown,
116
120
  A as RDSFileUploadItem,
117
121
  g as RDSFilterChip,
118
- T as RDSFilterTag,
122
+ B as RDSFilterTag,
119
123
  e as RDSFloatinActionButton,
120
124
  i as RDSIconSvg,
121
125
  L as RDSIndicator,
122
- O as RDSInfoBox,
123
- F as RDSLink,
124
- j as RDSLoader,
125
- Q as RDSModal,
126
- V as RDSOverlay,
127
- k as RDSPagination,
126
+ U as RDSInfoBox,
127
+ P as RDSLink,
128
+ Q as RDSLoader,
129
+ V as RDSModal,
130
+ q as RDSOverlay,
131
+ y as RDSPagination,
128
132
  M as RDSPersistentToast,
129
- U as RDSProgressBar,
133
+ K as RDSPopover,
134
+ j as RDSProgressBar,
130
135
  d as RDSQuantitySelector,
131
136
  n as RDSRadioButton,
132
137
  s as RDSRadioGroup,
133
138
  u as RDSSelectionChip,
134
- z as RDSSidebar,
135
- K as RDSSidedrawer,
136
- p as RDSSwitch,
137
- y as RDSTabBar,
138
- I as RDSTable,
139
- B as RDSTag,
140
- R as RDSTextArea,
139
+ $ as RDSSidebar,
140
+ E as RDSSidedrawer,
141
+ O as RDSSnackBar,
142
+ R as RDSSwitch,
143
+ w as RDSTabBar,
144
+ x as RDSTable,
145
+ T as RDSTag,
146
+ p as RDSTextArea,
141
147
  D as RDSTextField,
142
148
  l as RDSToggle,
143
- q as RDSTooltip,
144
- $ as VueInstance,
145
- Mo as default,
146
- Lo as setVueInstance
149
+ z as RDSTooltip,
150
+ H as VueInstance,
151
+ Qo as default,
152
+ jo as setVueInstance
147
153
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, createElementBlock as d, openBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as F, createCommentVNode as B, toDisplayString as C } from "vue";
1
+ import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, createElementBlock as d, openBlock as u, normalizeClass as h, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as F, createCommentVNode as B, toDisplayString as C } from "vue";
2
2
  import { d as I, t as A, a as T } from "./functions-DIHwdgF0.js";
3
3
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
4
+ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__inner" }, X = { class: "rds-e-indicator__step-content" }, Y = { key: 0 }, j = /* @__PURE__ */ k({
5
5
  __name: "indicator",
6
6
  props: {
7
7
  /**
@@ -10,8 +10,8 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
10
10
  steps: {
11
11
  type: Array,
12
12
  required: !0,
13
- validator(i) {
14
- return !Array.isArray(i) || i.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : i.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s\u00C0-\u017F]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
13
+ validator(a) {
14
+ return !Array.isArray(a) || a.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : a.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s\u00C0-\u017F]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
15
15
  }
16
16
  },
17
17
  /**
@@ -20,8 +20,8 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
20
20
  currentStep: {
21
21
  type: Number,
22
22
  required: !0,
23
- validator(i) {
24
- return typeof i != "number" ? (console.warn("Advertencia: currentStep debe ser un número."), !1) : i <= 0 ? (console.warn("Advertencia: currentStep debe ser mayor que 0."), !1) : Number.isInteger(i) ? !0 : (console.warn("Advertencia: currentStep debe ser un número entero."), !1);
23
+ validator(a) {
24
+ return typeof a != "number" ? (console.warn("Advertencia: currentStep debe ser un número."), !1) : a <= 0 ? (console.warn("Advertencia: currentStep debe ser mayor que 0."), !1) : Number.isInteger(a) ? !0 : (console.warn("Advertencia: currentStep debe ser un número entero."), !1);
25
25
  }
26
26
  },
27
27
  /**
@@ -51,10 +51,17 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
51
51
  ellipsis: {
52
52
  type: Boolean,
53
53
  default: !1
54
+ },
55
+ /**
56
+ * ID del indicador para testing
57
+ */
58
+ id: {
59
+ type: String,
60
+ default: void 0
54
61
  }
55
62
  },
56
- setup(i) {
57
- const t = i, {
63
+ setup(a) {
64
+ const t = a, {
58
65
  direction: o,
59
66
  currentStep: f,
60
67
  steps: $,
@@ -70,20 +77,20 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
70
77
  return {
71
78
  [s]: "100%"
72
79
  };
73
- const a = (r - 1) / (e - 1) * 100, n = r < e ? 100 / (e - 1) / 2 : 0;
80
+ const i = (r - 1) / (e - 1) * 100, n = r < e ? 100 / (e - 1) / 2 : 0;
74
81
  return {
75
- [s]: `${a + n}%`
82
+ [s]: `${i + n}%`
76
83
  };
77
- }), h = () => {
84
+ }), b = () => {
78
85
  if (_.value && v.value) {
79
86
  const r = v.value, e = c.value[0];
80
87
  if (e) {
81
88
  if (o.value === "vertical") {
82
- const s = e.getBoundingClientRect(), a = _.value.getBoundingClientRect(), n = s.left + s.width / 2 - a.left;
89
+ const s = e.getBoundingClientRect(), i = _.value.getBoundingClientRect(), n = s.left + s.width / 2 - i.left;
83
90
  r.style.left = `${n}px`;
84
91
  }
85
92
  if (o.value === "horizontal") {
86
- const s = e.getBoundingClientRect(), a = _.value.getBoundingClientRect(), n = s.top + s.height / 2 - a.top;
93
+ const s = e.getBoundingClientRect(), i = _.value.getBoundingClientRect(), n = s.top + s.height / 2 - i.top;
87
94
  r.style.top = `${n}px`;
88
95
  }
89
96
  }
@@ -99,7 +106,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
99
106
  }, g = () => {
100
107
  !t.steps || !t.steps.length || t.steps.forEach((r, e) => {
101
108
  var w;
102
- const s = e < f.value, a = e === f.value - 1;
109
+ const s = e < f.value, i = e === f.value - 1;
103
110
  let n = (w = c.value[e]) == null ? void 0 : w.classList, l = [];
104
111
  n && (n = Array.from(n), l = Array.from(n), l = A(
105
112
  l,
@@ -108,13 +115,13 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
108
115
  ), l = A(
109
116
  l,
110
117
  "rds-e-indicator__bullet--current",
111
- a
118
+ i
112
119
  ), T(n, l) || setTimeout(() => {
113
120
  c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
114
121
  }, 150));
115
122
  });
116
123
  }, m = () => {
117
- h();
124
+ b();
118
125
  };
119
126
  return S(
120
127
  [o, $, R],
@@ -125,19 +132,20 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
125
132
  ), S(f, () => {
126
133
  g();
127
134
  }), q(() => {
128
- h(), g(), window.addEventListener("resize", I(m, 200));
135
+ b(), g(), window.addEventListener("resize", I(m, 200));
129
136
  }), P(() => {
130
137
  window.removeEventListener("resize", m);
131
138
  }), (r, e) => (u(), d("div", {
139
+ id: a.id,
132
140
  ref_key: "$indicator",
133
141
  ref: _,
134
- class: b(["rds-e-indicator", [
142
+ class: h(["rds-e-indicator", [
135
143
  `rds-e-indicator--${t.direction}`,
136
144
  { "rds-e-indicator--small": t.variant === "small" },
137
145
  { "rds-e-indicator--full-width": t.fullWidth }
138
146
  ]])
139
147
  }, [
140
- p("div", M, [
148
+ p("div", U, [
141
149
  p("div", {
142
150
  ref_key: "$progressBar",
143
151
  ref: v,
@@ -148,28 +156,28 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
148
156
  style: V(E.value)
149
157
  }, null, 4)
150
158
  ], 512),
151
- (u(!0), d(W, null, F(t.steps, (s, a) => (u(), d("div", {
152
- key: a,
153
- class: b(["rds-e-indicator__step-wrapper", L(a)])
159
+ (u(!0), d(W, null, F(t.steps, (s, i) => (u(), d("div", {
160
+ key: i,
161
+ class: h(["rds-e-indicator__step-wrapper", L(i)])
154
162
  }, [
155
- p("div", U, [
163
+ p("div", X, [
156
164
  p("div", {
157
165
  ref_for: !0,
158
- ref: (n) => c.value[a] = n,
166
+ ref: (n) => c.value[i] = n,
159
167
  class: "rds-e-indicator__bullet"
160
168
  }, [
161
- t.variant !== "small" ? (u(), d("span", X, C(a + 1), 1)) : B("", !0)
169
+ t.variant !== "small" ? (u(), d("span", Y, C(i + 1), 1)) : B("", !0)
162
170
  ], 512)
163
171
  ]),
164
172
  t.variant !== "small" ? (u(), d("div", {
165
173
  key: 0,
166
- class: b(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
174
+ class: h(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
167
175
  }, C(s), 3)) : B("", !0)
168
176
  ], 2))), 128))
169
177
  ])
170
- ], 2));
178
+ ], 10, M));
171
179
  }
172
- }), J = /* @__PURE__ */ D(Y, [["__scopeId", "data-v-8eb9e922"]]);
180
+ }), K = /* @__PURE__ */ D(j, [["__scopeId", "data-v-2523e4b1"]]);
173
181
  export {
174
- J as default
182
+ K as default
175
183
  };
@@ -1,28 +1,28 @@
1
- import { defineComponent as k, ref as u, toRefs as h, computed as $, watch as w, nextTick as S, createElementBlock as t, openBlock as s, normalizeClass as m, createElementVNode as a, createCommentVNode as o, createVNode as b, toDisplayString as r, renderSlot as v } from "vue";
2
- import { R as _ } from "./icon-svg-DuzOdbk1.js";
1
+ import { defineComponent as h, ref as u, toRefs as k, computed as $, watch as S, nextTick as w, createElementBlock as t, openBlock as o, normalizeClass as m, createElementVNode as a, createCommentVNode as s, createVNode as b, toDisplayString as r, renderSlot as v } from "vue";
2
+ import { R as _ } from "./icon-svg-BU0OQFKH.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/infoBox.css';const q = { class: "alert" }, B = {
4
+ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
5
5
  key: 0,
6
6
  class: "rds-e-info-box__custom-icon-block"
7
- }, H = { class: "rds-e-info-box__wrapper" }, N = { class: "rds-e-info-box__title__wrapper" }, R = {
7
+ }, N = { class: "rds-e-info-box__wrapper" }, R = { class: "rds-e-info-box__title__wrapper" }, V = {
8
8
  key: 0,
9
9
  class: "rds-e-info-box__title rds-mb-03"
10
- }, V = {
10
+ }, D = {
11
11
  key: 0,
12
12
  class: "rds-e-info-box__title rds-mb-03"
13
- }, D = {
13
+ }, E = {
14
14
  key: 2,
15
15
  class: "rds-e-info-box__text"
16
- }, E = {
16
+ }, I = {
17
17
  key: 3,
18
18
  class: "rds-e-info-box__content-section"
19
- }, I = {
19
+ }, z = {
20
20
  key: 0,
21
21
  class: "rds-e-info-box__text"
22
- }, z = {
22
+ }, O = {
23
23
  key: 1,
24
24
  class: "rds-e-info-box__content-section"
25
- }, O = /* @__PURE__ */ k({
25
+ }, T = /* @__PURE__ */ h({
26
26
  __name: "info-box",
27
27
  props: {
28
28
  /**
@@ -88,58 +88,66 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
88
88
  type: Boolean,
89
89
  required: !1,
90
90
  default: !1
91
+ },
92
+ /**
93
+ * ID del info-box para testing
94
+ */
95
+ id: {
96
+ type: String,
97
+ default: void 0
91
98
  }
92
99
  },
93
100
  setup(e) {
94
- const x = e, l = u(!1), c = u(null), d = u(null), { type: i } = h(x), y = $(
95
- () => `rds-e-info-box rds-mb-03 rds-e-info-box${i.value === "success" ? "--success" : ""}${i.value === "error" ? "--error" : ""}${i.value === "warning" ? "--warning" : ""}${i.value === "info" ? "--info" : ""}`
101
+ const x = e, i = u(!1), c = u(null), d = u(null), { type: l } = k(x), y = $(
102
+ () => `rds-e-info-box rds-mb-03 rds-e-info-box${l.value === "success" ? "--success" : ""}${l.value === "error" ? "--error" : ""}${l.value === "warning" ? "--warning" : ""}${l.value === "info" ? "--info" : ""}`
96
103
  ), g = () => {
97
104
  if (!c.value || !d.value) return;
98
105
  const n = d.value.scrollHeight;
99
- c.value.style.maxHeight = l.value ? `${n}px` : "0px";
106
+ c.value.style.maxHeight = i.value ? `${n}px` : "0px";
100
107
  };
101
- w(
102
- () => l.value,
103
- () => S(() => {
108
+ S(
109
+ () => i.value,
110
+ () => w(() => {
104
111
  g();
105
112
  }),
106
113
  { immediate: !0 }
107
114
  );
108
115
  const p = () => {
109
- l.value = !l.value;
116
+ i.value = !i.value;
110
117
  };
111
- return (n, f) => (s(), t("div", {
118
+ return (n, f) => (o(), t("div", {
119
+ id: e.id,
112
120
  class: m(y.value),
113
121
  role: "alert"
114
122
  }, [
115
- a("div", q, [
116
- e.icon ? (s(), t("div", B, [
123
+ a("div", B, [
124
+ e.icon ? (o(), t("div", H, [
117
125
  b(_, {
118
126
  name: e.icon,
119
127
  class: "rds-e-info-box__custom-icon",
120
128
  "aria-hidden": "true"
121
129
  }, null, 8, ["name"])
122
- ])) : o("", !0),
123
- a("div", H, [
124
- a("div", N, [
125
- e.title && !e.collapsable ? (s(), t("div", R, r(e.title), 1)) : o("", !0),
126
- e.collapsable ? (s(), t("div", {
130
+ ])) : s("", !0),
131
+ a("div", N, [
132
+ a("div", R, [
133
+ e.title && !e.collapsable ? (o(), t("div", V, r(e.title), 1)) : s("", !0),
134
+ e.collapsable ? (o(), t("div", {
127
135
  key: 1,
128
136
  class: "rds-e-info-box__collapsable rds-mb-03",
129
137
  onClick: f[0] || (f[0] = () => p())
130
138
  }, [
131
- e.title ? (s(), t("div", V, r(e.title), 1)) : o("", !0),
139
+ e.title ? (o(), t("div", D, r(e.title), 1)) : s("", !0),
132
140
  b(_, {
133
141
  name: "arrow_down",
134
- class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": l.value }]),
142
+ class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": i.value }]),
135
143
  "aria-hidden": "true"
136
144
  }, null, 8, ["class"])
137
- ])) : o("", !0),
138
- e.message && !e.collapsable && !n.$slots["content-section"] ? (s(), t("p", D, r(e.message), 1)) : o("", !0),
139
- n.$slots["content-section"] && !e.collapsable ? (s(), t("div", E, [
145
+ ])) : s("", !0),
146
+ e.message && !e.collapsable && !n.$slots["content-section"] ? (o(), t("p", E, r(e.message), 1)) : s("", !0),
147
+ n.$slots["content-section"] && !e.collapsable ? (o(), t("div", I, [
140
148
  v(n.$slots, "content-section", {}, void 0, !0)
141
- ])) : o("", !0),
142
- e.collapsable ? (s(), t("div", {
149
+ ])) : s("", !0),
150
+ e.collapsable ? (o(), t("div", {
143
151
  key: 4,
144
152
  ref_key: "panel",
145
153
  ref: c,
@@ -150,18 +158,18 @@ import './style/infoBox.css';const q = { class: "alert" }, B = {
150
158
  ref: d,
151
159
  class: "rds-e-info-box__panel-content"
152
160
  }, [
153
- n.$slots["content-section"] ? o("", !0) : (s(), t("p", I, r(e.message), 1)),
154
- n.$slots["content-section"] ? (s(), t("div", z, [
161
+ n.$slots["content-section"] ? s("", !0) : (o(), t("p", z, r(e.message), 1)),
162
+ n.$slots["content-section"] ? (o(), t("div", O, [
155
163
  v(n.$slots, "content-section", {}, void 0, !0)
156
- ])) : o("", !0)
164
+ ])) : s("", !0)
157
165
  ], 512)
158
- ], 512)) : o("", !0)
166
+ ], 512)) : s("", !0)
159
167
  ])
160
168
  ])
161
169
  ])
162
- ], 2));
170
+ ], 10, q));
163
171
  }
164
- }), F = /* @__PURE__ */ C(O, [["__scopeId", "data-v-39ef726d"]]);
172
+ }), G = /* @__PURE__ */ C(T, [["__scopeId", "data-v-61fb9d6e"]]);
165
173
  export {
166
- F as default
174
+ G as default
167
175
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as L, toRefs as N, computed as f, createBlock as p, openBlock as s, resolveDynamicComponent as V, unref as e, normalizeStyle as $, normalizeClass as _, withCtx as M, createCommentVNode as d, createElementBlock as I, mergeProps as k, renderSlot as D, createTextVNode as R, toDisplayString as j } from "vue";
2
- import { R as v } from "./icon-svg-DuzOdbk1.js";
3
- import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/link.css';const P = /* @__PURE__ */ L({
1
+ import { defineComponent as N, toRefs as V, computed as f, createBlock as p, openBlock as s, resolveDynamicComponent as $, unref as e, normalizeStyle as M, normalizeClass as _, withCtx as O, createCommentVNode as d, createElementBlock as I, mergeProps as k, renderSlot as D, createTextVNode as R, toDisplayString as j } from "vue";
2
+ import { R as v } from "./icon-svg-BU0OQFKH.js";
3
+ import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/link.css';const T = /* @__PURE__ */ N({
5
5
  __name: "link",
6
6
  props: {
7
7
  /**
@@ -87,6 +87,13 @@ import './style/link.css';const P = /* @__PURE__ */ L({
87
87
  color: {
88
88
  type: String,
89
89
  default: ""
90
+ },
91
+ /**
92
+ * <span>ID del link para testing</span>
93
+ */
94
+ id: {
95
+ type: String,
96
+ default: void 0
90
97
  }
91
98
  },
92
99
  setup(o) {
@@ -102,8 +109,9 @@ import './style/link.css';const P = /* @__PURE__ */ L({
102
109
  underline: h,
103
110
  customClass: b,
104
111
  color: l,
105
- arrowSmall: x
106
- } = N(y), z = f(() => l.value ? { color: l.value } : void 0), E = f(() => {
112
+ arrowSmall: x,
113
+ id: z
114
+ } = V(y), E = f(() => l.value ? { color: l.value } : void 0), L = f(() => {
107
115
  var n, B;
108
116
  const a = ["rds-e-link"];
109
117
  return m.value && a.push("rds-e-link--inverse"), h.value && a.push("rds-e-link--underline"), i.value && a.push("rds-e-style-state-disabled"), ((n = r == null ? void 0 : r.value) == null ? void 0 : n.name) !== "arrow" && a.push("rds-e-arrow-link"), ((B = r == null ? void 0 : r.value) == null ? void 0 : B.name) !== "arrow" && m.value && a.push("rds-e-arrow-link__icon--inverse"), b.value === "rds-e-breadcrumbs__link--text" && a.push("rds-e-link__breadcrumbs"), a.join(" ");
@@ -117,16 +125,17 @@ import './style/link.css';const P = /* @__PURE__ */ L({
117
125
  var a;
118
126
  return c.value || ((a = r == null ? void 0 : r.value) == null ? void 0 : a.name);
119
127
  });
120
- return (a, n) => (s(), p(V(e(u) === "a" ? e(u) : "router-link"), {
121
- class: _(E.value),
128
+ return (a, n) => (s(), p($(e(u) === "a" ? e(u) : "router-link"), {
129
+ id: e(z),
130
+ class: _(L.value),
122
131
  to: e(u) === "router-link" ? e(g) : null,
123
132
  href: e(u) === "a" ? e(g) : null,
124
133
  disable: e(i),
125
- style: $(z.value),
134
+ style: M(E.value),
126
135
  tabindex: e(i) ? -1 : void 0,
127
136
  "aria-disabled": e(i)
128
137
  }, {
129
- default: M(() => [
138
+ default: O(() => [
130
139
  e(r).name && !e(t) && !e(c) ? (s(), p(v, k({
131
140
  key: 0,
132
141
  name: e(r).name
@@ -174,9 +183,9 @@ import './style/link.css';const P = /* @__PURE__ */ L({
174
183
  }), null, 16, ["name", "class", "style"])) : d("", !0)
175
184
  ]),
176
185
  _: 3
177
- }, 8, ["class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
186
+ }, 8, ["id", "class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
178
187
  }
179
- }), F = /* @__PURE__ */ O(P, [["__scopeId", "data-v-377c1eda"]]);
188
+ }), G = /* @__PURE__ */ P(T, [["__scopeId", "data-v-3a1cb6f7"]]);
180
189
  export {
181
- F as default
190
+ G as default
182
191
  };