energy-components 1.22.0 → 2.0.0-beta.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 (80) hide show
  1. package/README.md +21 -6
  2. package/dist/components/accordion.es.js +17 -17
  3. package/dist/components/avatar.es.js +7 -7
  4. package/dist/components/breadcrumbs.es.js +32 -32
  5. package/dist/components/button.es.js +24 -24
  6. package/dist/components/checkbox.es.js +14 -17
  7. package/dist/components/collapsable.es.js +1 -1
  8. package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js} +10 -10
  9. package/dist/components/datepicker.es.js +4644 -4639
  10. package/dist/components/directAccess.es.js +45 -50
  11. package/dist/components/dragAndDrop.es.js +44 -46
  12. package/dist/components/dropdown.es.js +154 -163
  13. package/dist/components/fileUploadItem.es.js +18 -18
  14. package/dist/components/filterChip.es.js +9 -9
  15. package/dist/components/filterTag.es.js +7 -7
  16. package/dist/components/{floating-ui.vue-DHEoOe5S.js → floating-ui.vue-C-DgKOwt.js} +1 -1
  17. package/dist/components/functions-D3GA3OzJ.js +24 -0
  18. package/dist/components/icon-svg-DxlNo61Q.js +869 -0
  19. package/dist/components/iconList.es.js +25 -29
  20. package/dist/components/iconSvg.es.js +1 -1
  21. package/dist/components/index.es.js +46 -46
  22. package/dist/components/indicator.es.js +27 -28
  23. package/dist/components/infoBox.es.js +17 -17
  24. package/dist/components/link.es.js +51 -55
  25. package/dist/components/modal.es.js +20 -20
  26. package/dist/components/multiselect.es.js +2 -3
  27. package/dist/components/overlay.es.js +20 -15
  28. package/dist/components/pagination.es.js +111 -111
  29. package/dist/components/persistentToast.es.js +11 -11
  30. package/dist/components/popover.es.js +18 -18
  31. package/dist/components/popoverMenu.es.js +22 -22
  32. package/dist/components/progressBar.es.js +8 -8
  33. package/dist/components/quantitySelector.es.js +12 -12
  34. package/dist/components/radioButton.es.js +26 -26
  35. package/dist/components/selectionChip.es.js +5 -5
  36. package/dist/components/sidedrawer.es.js +19 -19
  37. package/dist/components/style/accordionGroup.css +1 -1
  38. package/dist/components/style/actionButton.css +1 -1
  39. package/dist/components/style/button.css +1 -1
  40. package/dist/components/style/checkbox.css +1 -1
  41. package/dist/components/style/datepicker.css +1 -1
  42. package/dist/components/style/directAccess.css +1 -1
  43. package/dist/components/style/dragAndDrop.css +1 -1
  44. package/dist/components/style/filterChip.css +1 -1
  45. package/dist/components/style/icon-svg.css +1 -1
  46. package/dist/components/style/iconList.css +1 -1
  47. package/dist/components/style/link.css +1 -1
  48. package/dist/components/style/modal.css +1 -1
  49. package/dist/components/style/overlay.css +1 -1
  50. package/dist/components/style/pagination.css +1 -1
  51. package/dist/components/style/persistentToast.css +1 -1
  52. package/dist/components/style/selectionChip.css +1 -1
  53. package/dist/components/style/sidedrawer.css +1 -1
  54. package/dist/components/style/tabBar.css +1 -1
  55. package/dist/components/style/tableslotedcomponent.css +1 -1
  56. package/dist/components/switch.es.js +9 -9
  57. package/dist/components/tabBar.es.js +32 -33
  58. package/dist/components/tablepaginatedcomponent.es.js +35 -36
  59. package/dist/components/tableslotedcomponent.es.js +116 -121
  60. package/dist/components/tag.es.js +6 -6
  61. package/dist/components/textArea.es.js +103 -106
  62. package/dist/components/textField.es.js +21 -22
  63. package/dist/components/toggle.es.js +23 -23
  64. package/dist/components/tooltip.es.js +59 -59
  65. package/dist/energy-components.css +1 -0
  66. package/dist/energy-components.es.js +9101 -24972
  67. package/dist/energy-components.umd.js +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/types/src/components/icon-svg/icon-list.d.ts +8 -9
  70. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
  71. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
  72. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +2 -2
  73. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
  74. package/dist/types/src/helpers/functions.d.ts +1 -0
  75. package/dist/types/style.d.ts +1 -0
  76. package/dist/types/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +24 -17
  78. package/dist/components/functions-DIHwdgF0.js +0 -18
  79. package/dist/components/icon-svg-K8-vLJgV.js +0 -16718
  80. package/dist/composables/index.es.js +0 -37
@@ -1,49 +1,45 @@
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-K8-vLJgV.js";
1
+ import { defineComponent as _, ref as s, computed as p, createElementBlock as a, openBlock as i, Fragment as u, withDirectives as v, createElementVNode as r, vModelText as f, renderList as x, normalizeClass as C, createVNode as L, toDisplayString as g } from "vue";
2
+ import { s as h, I as k } from "./icon-svg-DxlNo61Q.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/iconList.css';const y = { class: "rds-e-icon-list" }, D = ["onClick"], N = /* @__PURE__ */ p({
4
+ import './style/iconList.css';const y = { class: "rds-e-icon-list" }, I = ["onClick"], N = /* @__PURE__ */ _({
5
5
  __name: "icon-list",
6
- setup(S) {
7
- const o = a(""), l = a(!1), c = a(""), d = v(() => {
8
- let t = m;
9
- return o.value.length > 2 && (t = m.filter(
10
- (n) => n.name.toLowerCase().includes(o.value.toLowerCase())
11
- )), t.sort(
12
- (n, e) => n.name.localeCompare(e.name)
13
- );
14
- }), _ = (t) => {
15
- navigator.clipboard.writeText(t).then(() => {
16
- c.value = t, l.value = !0;
6
+ setup(T) {
7
+ const o = s(""), l = s(!1), c = s(""), d = p(() => {
8
+ let e = h;
9
+ return o.value.length > 2 && (e = e.filter((n) => n.toLowerCase().includes(o.value.toLowerCase()))), e.map((n) => ({ name: n }));
10
+ }), m = (e) => {
11
+ navigator.clipboard.writeText(e).then(() => {
12
+ c.value = e, l.value = !0;
17
13
  }), setTimeout(() => {
18
14
  l.value = !1;
19
15
  }, 1e3);
20
16
  };
21
- return (t, n) => (i(), s(u, null, [
22
- f(r("input", {
23
- "onUpdate:modelValue": n[0] || (n[0] = (e) => o.value = e),
17
+ return (e, n) => (i(), a(u, null, [
18
+ v(r("input", {
19
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => o.value = t),
24
20
  class: "rds-e-icon-list__filter",
25
21
  type: "text",
26
22
  placeholder: "Filtrar iconos"
27
23
  }, null, 512), [
28
- [C, o.value]
24
+ [f, o.value]
29
25
  ]),
30
26
  r("div", y, [
31
- (i(!0), s(u, null, L(d.value, (e) => (i(), s("div", {
32
- key: e.name,
33
- class: x(["rds-e-icon-list__item", {
34
- "rds-e-icon-list__item--active": l.value && c.value === e.name
27
+ (i(!0), a(u, null, x(d.value, (t) => (i(), a("div", {
28
+ key: t.name,
29
+ class: C(["rds-e-icon-list__item", {
30
+ "rds-e-icon-list__item--active": l.value && c.value === t.name
35
31
  }]),
36
- onClick: (T) => _(e.name)
32
+ onClick: (V) => m(t.name)
37
33
  }, [
38
- g(k, {
39
- name: e.name
34
+ L(k, {
35
+ name: t.name
40
36
  }, null, 8, ["name"]),
41
- r("code", null, h(e.name), 1)
42
- ], 10, D))), 128))
37
+ r("code", null, g(t.name), 1)
38
+ ], 10, I))), 128))
43
39
  ])
44
40
  ], 64));
45
41
  }
46
- }), F = /* @__PURE__ */ w(N, [["__scopeId", "data-v-12fc5634"]]);
42
+ }), E = /* @__PURE__ */ w(N, [["__scopeId", "data-v-5cde32b5"]]);
47
43
  export {
48
- F as default
44
+ E as default
49
45
  };
@@ -1,4 +1,4 @@
1
- import { R as a } from "./icon-svg-K8-vLJgV.js";
1
+ import { I as a } from "./icon-svg-DxlNo61Q.js";
2
2
  import "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  export {
4
4
  a as default
@@ -1,4 +1,4 @@
1
- import { R as a } from "./icon-svg-K8-vLJgV.js";
1
+ import { I as a } from "./icon-svg-DxlNo61Q.js";
2
2
  import i from "./button.es.js";
3
3
  import e from "./floatingActionButton.es.js";
4
4
  import m from "./actionButton.es.js";
@@ -16,23 +16,23 @@ 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 B from "./fileUploadItem.es.js";
19
- import A 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 P from "./divider.es.js";
24
- import _ from "./card.es.js";
25
- import h from "./tablepaginatedcomponent.es.js";
26
- import x from "./avatar.es.js";
27
- import { _ as I } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js";
28
- import F 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";
19
+ import v from "./filterTag.es.js";
20
+ import A from "./tag.es.js";
21
+ import T from "./accordionGroup.es.js";
22
+ import I from "./accordion.es.js";
23
+ import C from "./divider.es.js";
24
+ import P from "./card.es.js";
25
+ import _ from "./tablepaginatedcomponent.es.js";
26
+ import h from "./avatar.es.js";
27
+ import { _ as x } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js";
28
+ import y from "./link.es.js";
29
+ import F from "./breadcrumbs.es.js";
30
+ import k from "./tabBar.es.js";
31
+ import w from "./pagination.es.js";
32
32
  import M from "./directAccess.es.js";
33
33
  import G from "./indicator.es.js";
34
- import L from "./badge.es.js";
35
- import O from "./persistentToast.es.js";
34
+ import O from "./badge.es.js";
35
+ import L from "./persistentToast.es.js";
36
36
  import U from "./snackBar.es.js";
37
37
  import j from "./infoBox.es.js";
38
38
  import Q from "./progressBar.es.js";
@@ -46,34 +46,34 @@ import H from "./sidebar.es.js";
46
46
  import J from "./sidedrawer.es.js";
47
47
  const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
48
48
  __proto__: null,
49
- RDSAccordion: C,
50
- RDSAccordionGroup: v,
49
+ RDSAccordion: I,
50
+ RDSAccordionGroup: T,
51
51
  RDSActionButton: m,
52
- RDSAvatar: x,
53
- RDSBadge: L,
54
- RDSBreadcrumbs: k,
52
+ RDSAvatar: h,
53
+ RDSBadge: O,
54
+ RDSBreadcrumbs: F,
55
55
  RDSButton: i,
56
- RDSCard: _,
56
+ RDSCard: P,
57
57
  RDSCheckbox: S,
58
- RDSCollapsable: I,
58
+ RDSCollapsable: x,
59
59
  RDSDatePicker: f,
60
60
  RDSDirectAccess: M,
61
- RDSDivider: P,
61
+ RDSDivider: C,
62
62
  RDSDragAndDrop: b,
63
63
  RDSDropdown: c,
64
64
  RDSFileUploadItem: B,
65
65
  RDSFilterChip: g,
66
- RDSFilterTag: A,
66
+ RDSFilterTag: v,
67
67
  RDSFloatinActionButton: e,
68
68
  RDSIconSvg: a,
69
69
  RDSIndicator: G,
70
70
  RDSInfoBox: j,
71
- RDSLink: F,
71
+ RDSLink: y,
72
72
  RDSLoader: V,
73
73
  RDSModal: q,
74
74
  RDSOverlay: z,
75
- RDSPagination: y,
76
- RDSPersistentToast: O,
75
+ RDSPagination: w,
76
+ RDSPersistentToast: L,
77
77
  RDSPopover: $,
78
78
  RDSPopoverMenu: E,
79
79
  RDSProgressBar: Q,
@@ -85,9 +85,9 @@ const t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
85
85
  RDSSidedrawer: J,
86
86
  RDSSnackBar: U,
87
87
  RDSSwitch: R,
88
- RDSTabBar: w,
89
- RDSTable: h,
90
- RDSTag: T,
88
+ RDSTabBar: k,
89
+ RDSTable: _,
90
+ RDSTag: A,
91
91
  RDSTextArea: p,
92
92
  RDSTextField: D,
93
93
  RDSToggle: l,
@@ -107,34 +107,34 @@ const Ko = {
107
107
  }
108
108
  };
109
109
  export {
110
- C as RDSAccordion,
111
- v as RDSAccordionGroup,
110
+ I as RDSAccordion,
111
+ T as RDSAccordionGroup,
112
112
  m as RDSActionButton,
113
- x as RDSAvatar,
114
- L as RDSBadge,
115
- k as RDSBreadcrumbs,
113
+ h as RDSAvatar,
114
+ O as RDSBadge,
115
+ F as RDSBreadcrumbs,
116
116
  i as RDSButton,
117
- _ as RDSCard,
117
+ P as RDSCard,
118
118
  S as RDSCheckbox,
119
- I as RDSCollapsable,
119
+ x as RDSCollapsable,
120
120
  f as RDSDatePicker,
121
121
  M as RDSDirectAccess,
122
- P as RDSDivider,
122
+ C as RDSDivider,
123
123
  b as RDSDragAndDrop,
124
124
  c as RDSDropdown,
125
125
  B as RDSFileUploadItem,
126
126
  g as RDSFilterChip,
127
- A as RDSFilterTag,
127
+ v as RDSFilterTag,
128
128
  e as RDSFloatinActionButton,
129
129
  a as RDSIconSvg,
130
130
  G as RDSIndicator,
131
131
  j as RDSInfoBox,
132
- F as RDSLink,
132
+ y as RDSLink,
133
133
  V as RDSLoader,
134
134
  q as RDSModal,
135
135
  z as RDSOverlay,
136
- y as RDSPagination,
137
- O as RDSPersistentToast,
136
+ w as RDSPagination,
137
+ L as RDSPersistentToast,
138
138
  $ as RDSPopover,
139
139
  E as RDSPopoverMenu,
140
140
  Q as RDSProgressBar,
@@ -146,9 +146,9 @@ export {
146
146
  J as RDSSidedrawer,
147
147
  U as RDSSnackBar,
148
148
  R as RDSSwitch,
149
- w as RDSTabBar,
150
- h as RDSTable,
151
- T as RDSTag,
149
+ k as RDSTabBar,
150
+ _ as RDSTable,
151
+ A as RDSTag,
152
152
  p as RDSTextArea,
153
153
  D as RDSTextField,
154
154
  l as RDSToggle,
@@ -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 h, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as F, createCommentVNode as B, toDisplayString as C } from "vue";
2
- import { d as I, t as A, a as T } from "./functions-DIHwdgF0.js";
3
- import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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({
1
+ import { defineComponent as L, toRefs as k, ref as y, computed as z, watch as w, onMounted as N, onBeforeUnmount as q, createElementBlock as d, openBlock as u, normalizeClass as h, createElementVNode as p, normalizeStyle as P, Fragment as V, renderList as W, createCommentVNode as S, toDisplayString as B } from "vue";
2
+ import { d as F, t as C, a as I } from "./functions-D3GA3OzJ.js";
3
+ import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/indicator.css';const D = ["id"], M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ L({
5
5
  __name: "indicator",
6
6
  props: {
7
7
  /**
@@ -64,9 +64,9 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
64
64
  const t = a, {
65
65
  direction: o,
66
66
  currentStep: f,
67
- steps: $,
68
- fullWidth: R
69
- } = z(t), _ = y(null), v = y(null), c = y([]), E = N(() => {
67
+ steps: A,
68
+ fullWidth: $
69
+ } = k(t), _ = y(null), v = y(null), c = y([]), R = z(() => {
70
70
  let r = t.currentStep;
71
71
  const e = t.steps.length, s = o.value === "vertical" ? "height" : "width";
72
72
  if (r < 1)
@@ -95,7 +95,7 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
95
95
  }
96
96
  }
97
97
  }
98
- }, L = (r) => {
98
+ }, E = (r) => {
99
99
  const e = r === 0 || r === t.steps.length - 1, s = !e;
100
100
  return {
101
101
  "rds-e-indicator__step-wrapper--first": r === 0,
@@ -105,35 +105,34 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
105
105
  };
106
106
  }, g = () => {
107
107
  !t.steps || !t.steps.length || t.steps.forEach((r, e) => {
108
- var w;
109
108
  const s = e < f.value, i = e === f.value - 1;
110
- let n = (w = c.value[e]) == null ? void 0 : w.classList, l = [];
111
- n && (n = Array.from(n), l = Array.from(n), l = A(
109
+ let n = c.value[e]?.classList, l = [];
110
+ n && (n = Array.from(n), l = Array.from(n), l = C(
112
111
  l,
113
112
  "rds-e-indicator__bullet--active",
114
113
  s
115
- ), l = A(
114
+ ), l = C(
116
115
  l,
117
116
  "rds-e-indicator__bullet--current",
118
117
  i
119
- ), T(n, l) || setTimeout(() => {
118
+ ), I(n, l) || setTimeout(() => {
120
119
  c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
121
120
  }, 150));
122
121
  });
123
122
  }, m = () => {
124
123
  b();
125
124
  };
126
- return S(
127
- [o, $, R],
125
+ return w(
126
+ [o, A, $],
128
127
  () => {
129
128
  m(), g();
130
129
  },
131
130
  { immediate: !0 }
132
- ), S(f, () => {
131
+ ), w(f, () => {
133
132
  g();
133
+ }), N(() => {
134
+ b(), g(), window.addEventListener("resize", F(m, 200));
134
135
  }), q(() => {
135
- b(), g(), window.addEventListener("resize", I(m, 200));
136
- }), P(() => {
137
136
  window.removeEventListener("resize", m);
138
137
  }), (r, e) => (u(), d("div", {
139
138
  id: a.id,
@@ -145,7 +144,7 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
145
144
  { "rds-e-indicator--full-width": t.fullWidth }
146
145
  ]])
147
146
  }, [
148
- p("div", U, [
147
+ p("div", M, [
149
148
  p("div", {
150
149
  ref_key: "$progressBar",
151
150
  ref: v,
@@ -153,31 +152,31 @@ import './style/indicator.css';const M = ["id"], U = { class: "rds-e-indicator__
153
152
  }, [
154
153
  p("div", {
155
154
  class: "rds-e-indicator__progress-bar__fill",
156
- style: V(E.value)
155
+ style: P(R.value)
157
156
  }, null, 4)
158
157
  ], 512),
159
- (u(!0), d(W, null, F(t.steps, (s, i) => (u(), d("div", {
158
+ (u(!0), d(V, null, W(t.steps, (s, i) => (u(), d("div", {
160
159
  key: i,
161
- class: h(["rds-e-indicator__step-wrapper", L(i)])
160
+ class: h(["rds-e-indicator__step-wrapper", E(i)])
162
161
  }, [
163
- p("div", X, [
162
+ p("div", U, [
164
163
  p("div", {
165
164
  ref_for: !0,
166
165
  ref: (n) => c.value[i] = n,
167
166
  class: "rds-e-indicator__bullet"
168
167
  }, [
169
- t.variant !== "small" ? (u(), d("span", Y, C(i + 1), 1)) : B("", !0)
168
+ t.variant !== "small" ? (u(), d("span", X, B(i + 1), 1)) : S("", !0)
170
169
  ], 512)
171
170
  ]),
172
171
  t.variant !== "small" ? (u(), d("div", {
173
172
  key: 0,
174
173
  class: h(["rds-e-indicator__label", { "rds-e-indicator__label--ellipsis": t.ellipsis }])
175
- }, C(s), 3)) : B("", !0)
174
+ }, B(s), 3)) : S("", !0)
176
175
  ], 2))), 128))
177
176
  ])
178
- ], 10, M));
177
+ ], 10, D));
179
178
  }
180
- }), K = /* @__PURE__ */ D(j, [["__scopeId", "data-v-2523e4b1"]]);
179
+ }), J = /* @__PURE__ */ T(Y, [["__scopeId", "data-v-2523e4b1"]]);
181
180
  export {
182
- K as default
181
+ J as default
183
182
  };
@@ -1,25 +1,25 @@
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-K8-vLJgV.js";
1
+ import { defineComponent as h, ref as u, toRefs as k, computed as $, watch as w, nextTick as S, 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 { I as _ } from "./icon-svg-DxlNo61Q.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
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
- }, N = { class: "rds-e-info-box__wrapper" }, R = { class: "rds-e-info-box__title__wrapper" }, V = {
7
+ }, I = { class: "rds-e-info-box__wrapper" }, N = { class: "rds-e-info-box__title__wrapper" }, V = {
8
8
  key: 0,
9
9
  class: "rds-e-info-box__title rds-mb-03"
10
- }, D = {
10
+ }, E = {
11
11
  key: 0,
12
12
  class: "rds-e-info-box__title rds-mb-03"
13
- }, E = {
13
+ }, z = {
14
14
  key: 2,
15
15
  class: "rds-e-info-box__text"
16
- }, I = {
16
+ }, D = {
17
17
  key: 3,
18
18
  class: "rds-e-info-box__content-section"
19
- }, z = {
19
+ }, O = {
20
20
  key: 0,
21
21
  class: "rds-e-info-box__text"
22
- }, O = {
22
+ }, R = {
23
23
  key: 1,
24
24
  class: "rds-e-info-box__content-section"
25
25
  }, T = /* @__PURE__ */ h({
@@ -105,9 +105,9 @@ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
105
105
  const n = d.value.scrollHeight;
106
106
  c.value.style.maxHeight = i.value ? `${n}px` : "0px";
107
107
  };
108
- S(
108
+ w(
109
109
  () => i.value,
110
- () => w(() => {
110
+ () => S(() => {
111
111
  g();
112
112
  }),
113
113
  { immediate: !0 }
@@ -128,23 +128,23 @@ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
128
128
  "aria-hidden": "true"
129
129
  }, null, 8, ["name"])
130
130
  ])) : s("", !0),
131
- a("div", N, [
132
- a("div", R, [
131
+ a("div", I, [
132
+ a("div", N, [
133
133
  e.title && !e.collapsable ? (o(), t("div", V, r(e.title), 1)) : s("", !0),
134
134
  e.collapsable ? (o(), t("div", {
135
135
  key: 1,
136
136
  class: "rds-e-info-box__collapsable rds-mb-03",
137
137
  onClick: f[0] || (f[0] = () => p())
138
138
  }, [
139
- e.title ? (o(), t("div", D, r(e.title), 1)) : s("", !0),
139
+ e.title ? (o(), t("div", E, r(e.title), 1)) : s("", !0),
140
140
  b(_, {
141
141
  name: "arrow_down",
142
142
  class: m(["rds-e-info-box__custom-icon", { "rds-e-info-box__custom-icon--open": i.value }]),
143
143
  "aria-hidden": "true"
144
144
  }, null, 8, ["class"])
145
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, [
146
+ e.message && !e.collapsable && !n.$slots["content-section"] ? (o(), t("p", z, r(e.message), 1)) : s("", !0),
147
+ n.$slots["content-section"] && !e.collapsable ? (o(), t("div", D, [
148
148
  v(n.$slots, "content-section", {}, void 0, !0)
149
149
  ])) : s("", !0),
150
150
  e.collapsable ? (o(), t("div", {
@@ -158,8 +158,8 @@ import './style/infoBox.css';const q = ["id"], B = { class: "alert" }, H = {
158
158
  ref: d,
159
159
  class: "rds-e-info-box__panel-content"
160
160
  }, [
161
- n.$slots["content-section"] ? s("", !0) : (o(), t("p", z, r(e.message), 1)),
162
- n.$slots["content-section"] ? (o(), t("div", O, [
161
+ n.$slots["content-section"] ? s("", !0) : (o(), t("p", O, r(e.message), 1)),
162
+ n.$slots["content-section"] ? (o(), t("div", R, [
163
163
  v(n.$slots, "content-section", {}, void 0, !0)
164
164
  ])) : s("", !0)
165
165
  ], 512)
@@ -1,7 +1,8 @@
1
- import { defineComponent as $, toRefs as M, computed as m, createBlock as p, openBlock as s, resolveDynamicComponent as O, unref as e, normalizeStyle as P, normalizeClass as k, withCtx as T, createCommentVNode as d, createElementBlock as I, mergeProps as v, renderSlot as D, createTextVNode as R, toDisplayString as j } from "vue";
2
- import { R as y } from "./icon-svg-K8-vLJgV.js";
3
- import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/link.css';const A = /* @__PURE__ */ $({
1
+ import { defineComponent as $, toRefs as M, computed as s, createBlock as f, openBlock as t, resolveDynamicComponent as O, unref as e, normalizeStyle as P, normalizeClass as p, withCtx as U, createCommentVNode as d, createElementBlock as B, mergeProps as _, renderSlot as I, createTextVNode as z, toDisplayString as j } from "vue";
2
+ import { s as q } from "./functions-D3GA3OzJ.js";
3
+ import { I as k } from "./icon-svg-DxlNo61Q.js";
4
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import './style/link.css';const F = /* @__PURE__ */ $({
5
6
  __name: "link",
6
7
  props: {
7
8
  /**
@@ -97,97 +98,92 @@ import './style/link.css';const A = /* @__PURE__ */ $({
97
98
  }
98
99
  },
99
100
  emits: ["click"],
100
- setup(o, { emit: w }) {
101
- const z = o, E = w, {
102
- text: g,
103
- to: h,
104
- icon: r,
101
+ setup(o, { emit: v }) {
102
+ const D = o, E = v, {
103
+ text: y,
104
+ to: w,
105
+ icon: a,
105
106
  tag: u,
106
107
  disabled: i,
107
- inverse: _,
108
+ inverse: m,
108
109
  arrow: c,
109
110
  right: n,
110
- underline: b,
111
- customClass: x,
111
+ underline: g,
112
+ customClass: h,
112
113
  color: l,
113
- arrowSmall: S,
114
+ arrowSmall: b,
114
115
  id: L
115
- } = M(z), N = m(() => l.value ? { color: l.value } : void 0), V = m(() => {
116
- var t, f;
117
- const a = ["rds-e-link"];
118
- return _.value && a.push("rds-e-link--inverse"), b.value && a.push("rds-e-link--underline"), i.value && a.push("rds-e-style-state-disabled"), ((t = r == null ? void 0 : r.value) == null ? void 0 : t.name) !== "arrow" && a.push("rds-e-arrow-link"), ((f = r == null ? void 0 : r.value) == null ? void 0 : f.name) !== "arrow" && _.value && a.push("rds-e-arrow-link__icon--inverse"), x.value === "rds-e-breadcrumbs__link--text" && a.push("rds-e-link__breadcrumbs"), a.join(" ");
119
- }), C = m(() => {
120
- var t;
121
- const a = ["rds-e-arrow-link__icon--arrow"];
122
- return r != null && r.value && (a.push("rds-e-arrow-link__icon"), i.value && a.push("rds-e-arrow-link__icon--disabled")), ((t = r == null ? void 0 : r.value) == null ? void 0 : t.name) !== "arrow" && _.value && a.push("rds-e-arrow-link__icon--inverse"), a.push(
116
+ } = M(D), N = s(() => l.value ? { color: l.value } : void 0), R = s(() => q(w.value)), T = s(() => {
117
+ const r = ["rds-e-link"];
118
+ return m.value && r.push("rds-e-link--inverse"), g.value && r.push("rds-e-link--underline"), i.value && r.push("rds-e-style-state-disabled"), a?.value?.name !== "arrow" && r.push("rds-e-arrow-link"), a?.value?.name !== "arrow" && m.value && r.push("rds-e-arrow-link__icon--inverse"), h.value === "rds-e-breadcrumbs__link--text" && r.push("rds-e-link__breadcrumbs"), r.join(" ");
119
+ }), x = s(() => {
120
+ const r = ["rds-e-arrow-link__icon--arrow"];
121
+ return a?.value && (r.push("rds-e-arrow-link__icon"), i.value && r.push("rds-e-arrow-link__icon--disabled")), a?.value?.name !== "arrow" && m.value && r.push("rds-e-arrow-link__icon--inverse"), r.push(
123
122
  n.value ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"
124
- ), a.join(" ");
125
- }), B = m(() => {
126
- var a;
127
- return c.value || ((a = r == null ? void 0 : r.value) == null ? void 0 : a.name);
128
- });
129
- return (a, t) => (s(), p(O(e(u) === "a" ? e(u) : "router-link"), {
123
+ ), r.join(" ");
124
+ }), S = s(() => c.value || a?.value?.name);
125
+ return (r, C) => (t(), f(O(e(u) === "a" ? e(u) : "router-link"), {
130
126
  id: e(L),
131
- class: k(V.value),
132
- to: e(u) === "router-link" ? e(h) : null,
133
- href: e(u) === "a" ? e(h) : null,
127
+ class: p(T.value),
128
+ to: e(u) === "router-link" ? e(w) : null,
129
+ href: e(u) === "a" ? R.value : null,
134
130
  disable: e(i),
135
131
  style: P(N.value),
136
132
  tabindex: e(i) ? -1 : void 0,
137
133
  "aria-disabled": e(i),
138
- onClick: t[0] || (t[0] = (f) => E("click", f))
134
+ onClick: C[0] || (C[0] = (V) => E("click", V))
139
135
  }, {
140
- default: T(() => [
141
- e(r).name && !e(n) && !e(c) ? (s(), p(y, v({
136
+ default: U(() => [
137
+ e(a).name && !e(n) && !e(c) ? (t(), f(k, _({
142
138
  key: 0,
143
- name: e(r).name
139
+ name: e(a).name
144
140
  }, {
145
- ...e(r)
141
+ ...e(a)
146
142
  }, {
147
- class: ["rds-e-link__icon-left", C.value],
143
+ class: ["rds-e-link__icon-left", x.value],
148
144
  style: e(l) ? { color: e(l) } : void 0
149
145
  }), null, 16, ["name", "class", "style"])) : d("", !0),
150
- e(n) ? (s(), I("span", {
146
+ e(n) ? (t(), B("span", {
151
147
  key: 1,
152
- class: k(["rds-e-link__text", [e(x), {
153
- "rds-e-mr-xs": B.value,
154
- "rds-e-link__text--underline": e(b)
148
+ class: p(["rds-e-link__text", [e(h), {
149
+ "rds-e-mr-xs": S.value,
150
+ "rds-e-link__text--underline": e(g)
155
151
  }]])
156
152
  }, [
157
- D(a.$slots, "default", {}, () => [
158
- R(j(e(g)), 1)
153
+ I(r.$slots, "default", {}, () => [
154
+ z(j(e(y)), 1)
159
155
  ], !0)
160
156
  ], 2)) : d("", !0),
161
- e(c) ? (s(), p(y, v({ key: 2 }, {
157
+ e(c) ? (t(), f(k, _({ key: 2 }, {
162
158
  name: e(n) ? "arrow_right" : "arrow_left",
163
- size: e(S) ? 16 : void 0
159
+ size: e(b) ? 16 : void 0
164
160
  }, {
165
161
  class: ["rds-e-arrow-link__icon--arrow", [
166
162
  e(n) ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left",
167
- { "rds-flex rds-flex-center-center": e(S) }
163
+ { "rds-flex rds-flex-center-center": e(b) }
168
164
  ]],
169
165
  style: e(l) ? { color: e(l) } : void 0
170
166
  }), null, 16, ["class", "style"])) : d("", !0),
171
- e(n) ? d("", !0) : (s(), I("span", {
167
+ e(n) ? d("", !0) : (t(), B("span", {
172
168
  key: 3,
173
- class: k(["rds-e-link__text", { "rds-e-ml-xs": B.value }])
169
+ class: p(["rds-e-link__text", { "rds-e-ml-xs": S.value }])
174
170
  }, [
175
- D(a.$slots, "default", {}, () => [
176
- R(j(e(g)), 1)
171
+ I(r.$slots, "default", {}, () => [
172
+ z(j(e(y)), 1)
177
173
  ], !0)
178
174
  ], 2)),
179
- e(r).name && e(n) && !e(c) ? (s(), p(y, v({
175
+ e(a).name && e(n) && !e(c) ? (t(), f(k, _({
180
176
  key: 4,
181
- name: e(r).name
182
- }, e(r), {
183
- class: ["rds-e-link__icon-right", C.value],
177
+ name: e(a).name
178
+ }, e(a), {
179
+ class: ["rds-e-link__icon-right", x.value],
184
180
  style: e(l) ? { color: e(l) } : void 0
185
181
  }), null, 16, ["name", "class", "style"])) : d("", !0)
186
182
  ]),
187
183
  _: 3
188
184
  }, 8, ["id", "class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
189
185
  }
190
- }), J = /* @__PURE__ */ q(A, [["__scopeId", "data-v-16fa62ca"]]);
186
+ }), Q = /* @__PURE__ */ A(F, [["__scopeId", "data-v-794c0d15"]]);
191
187
  export {
192
- J as default
188
+ Q as default
193
189
  };