energy-components 1.6.0-beta.0 → 1.6.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 (54) hide show
  1. package/dist/components/accordion.es.js +13 -13
  2. package/dist/components/button.es.js +11 -11
  3. package/dist/components/checkbox.es.js +7 -7
  4. package/dist/components/dropdown.es.js +278 -148
  5. package/dist/components/filterChip.es.js +4 -4
  6. package/dist/components/{icon-svg-CeKfjk3j.js → icon-svg-DGp2yHJn.js} +700 -670
  7. package/dist/components/iconList.es.js +5 -5
  8. package/dist/components/iconSvg.es.js +1 -1
  9. package/dist/components/index.es.js +62 -59
  10. package/dist/components/infoBox.es.js +48 -33
  11. package/dist/components/link.es.js +15 -15
  12. package/dist/components/modal.es.js +69 -39
  13. package/dist/components/multiselect.es.js +230 -184
  14. package/dist/components/multiselectcontentwrapper.es.js +140 -0
  15. package/dist/components/pagination.es.js +118 -86
  16. package/dist/components/persistentToast.es.js +29 -23
  17. package/dist/components/quantitySelector.es.js +9 -9
  18. package/dist/components/radioButton.es.js +16 -16
  19. package/dist/components/selectionChip.es.js +5 -5
  20. package/dist/components/sidedrawer.es.js +36 -28
  21. package/dist/components/style/datepicker.css +1 -1
  22. package/dist/components/style/dropdown.css +1 -1
  23. package/dist/components/style/infoBox.css +1 -1
  24. package/dist/components/style/modal.css +1 -1
  25. package/dist/components/style/multiselect.css +1 -1
  26. package/dist/components/style/multiselectcontentwrapper.css +1 -0
  27. package/dist/components/style/pagination.css +1 -1
  28. package/dist/components/style/persistentToast.css +1 -1
  29. package/dist/components/style/sidedrawer.css +1 -1
  30. package/dist/components/style/tablepaginatedcomponent.css +1 -1
  31. package/dist/components/style/tableslotedcomponent.css +1 -1
  32. package/dist/components/style/textField.css +1 -1
  33. package/dist/components/switch.es.js +10 -10
  34. package/dist/components/tabBar.es.js +12 -12
  35. package/dist/components/tablepaginatedcomponent.es.js +69 -66
  36. package/dist/components/tableslotedcomponent.es.js +147 -138
  37. package/dist/components/tag.es.js +5 -5
  38. package/dist/components/textArea.es.js +22 -22
  39. package/dist/components/textField.es.js +93 -84
  40. package/dist/components/tooltip.es.js +61 -61
  41. package/dist/energy-components.es.js +7354 -6797
  42. package/dist/energy-components.umd.js +1 -1
  43. package/dist/style.css +1 -1
  44. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +20 -1
  45. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +1 -0
  46. package/dist/types/src/components/index.d.ts +1 -0
  47. package/dist/types/src/components/input/dropdown/Multiselect/MultiselectContentWrapper.vue.d.ts +86 -0
  48. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +582 -0
  49. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +10 -3
  50. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +15 -0
  51. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +63 -31
  52. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +27 -1
  53. package/dist/types/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +4 -4
@@ -1,16 +1,24 @@
1
- import { defineComponent as ee, toRefs as le, getCurrentInstance as te, ref as _, computed as C, watchEffect as se, watch as ae, onMounted as oe, openBlock as o, createElementBlock as n, normalizeClass as b, createElementVNode as i, Fragment as p, renderList as x, renderSlot as h, normalizeStyle as ne, toDisplayString as O, createBlock as ce, mergeProps as ie, createCommentVNode as d, unref as $, createVNode as E, Transition as N, withCtx as V, nextTick as re } from "vue";
2
- import { I as L } from "./icon-svg-CeKfjk3j.js";
3
- import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-header", "onClick"], be = ["id", "checked", "onClick"], ke = ["for"], fe = {
1
+ import { defineComponent as w, toRefs as I, getCurrentInstance as ee, ref as p, computed as m, watchEffect as le, watch as te, onMounted as se, openBlock as n, createElementBlock as c, normalizeClass as u, createElementVNode as i, Fragment as g, renderList as x, renderSlot as h, createVNode as f, normalizeStyle as ae, toDisplayString as U, createCommentVNode as b, unref as C, Transition as O, withCtx as N, nextTick as oe } from "vue";
2
+ import { R as ne } from "./icon-svg-DGp2yHJn.js";
3
+ import E from "./checkbox.es.js";
4
+ import { g as ce } from "./getInstance-GhoEcxLF.js";
5
+ import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-header", "onClick"], ue = ["for"], be = {
7
+ key: 1,
8
+ class: "rds-flex rds-flex-align-center"
9
+ }, _e = {
10
+ key: 0,
11
+ class: "table__sortable-icon rds-flex rds-flex-center-center rds-flex-col"
12
+ }, ke = {
5
13
  key: 0,
6
14
  class: "table__cell table__cell--heading body-1 table__cell--right"
7
- }, pe = ["checked"], ye = {
15
+ }, pe = ["for"], fe = {
8
16
  key: 0,
9
17
  class: "loading-overlay"
10
- }, ve = ["onClick"], ge = ["column-key", "data-cell"], he = ["title"], $e = {
18
+ }, ye = ["onClick"], ve = ["column-key", "data-cell"], ge = ["title"], he = {
11
19
  key: 0,
12
20
  class: "table__cell table__cell--shadow table__cell--right"
13
- }, me = ["id", "checked", "disabled", "onClick"], Ce = ["for"], Se = ["colspan"], xe = ["colspan"], Ee = /* @__PURE__ */ ee({
21
+ }, $e = ["for"], me = ["colspan"], Ce = ["colspan"], Se = /* @__PURE__ */ w({
14
22
  __name: "TableSlotedComponent",
15
23
  props: {
16
24
  loading: { type: Boolean, default: !1 },
@@ -31,102 +39,107 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
31
39
  mockItems: {}
32
40
  },
33
41
  emits: ["selectAll", "onClickCheckbox", "onItemExpansion", "onHeaderSort"],
34
- setup(j, { expose: z, emit: F }) {
35
- const c = j, y = F, { item: k, listChecked: P, selectableKey: r } = le(c), S = te(), q = _(), v = _([]), m = _([]), K = _([]), U = _({}), f = _(!1), Y = _(!0), G = C(() => {
42
+ setup(L, { expose: j, emit: q }) {
43
+ const o = L, y = q, { item: k, listChecked: z, selectableKey: d } = I(o), S = ee(), F = p(), B = p(`table-${ce()}`), _ = p([]), $ = p([]), K = p([]), P = p(!0), G = m(() => {
36
44
  const e = "table";
37
45
  let t = e;
38
- return t = `${t} ${e}--${c.variant}`, c.condensed && (t = `${t} ${e}--condensed`), t;
39
- }), J = C(() => {
46
+ return t = `${t} ${e}--${o.variant}`, o.condensed && (t = `${t} ${e}--condensed`), t;
47
+ }), J = m(() => {
40
48
  const e = "table__body";
41
49
  let t = e;
42
- return t = `${t} ${e}--${c.variant}`, c.condensed && (t = `${t} ${e}--condensed`), t;
43
- }), Q = C(() => c.mockItems ? Array.from({ length: c.mockItems }, () => ({
50
+ return t = `${t} ${e}--${o.variant}`, o.condensed && (t = `${t} ${e}--condensed`), t;
51
+ }), Q = m(() => o.mockItems ? Array.from({ length: o.mockItems }, () => ({
44
52
  expandible: !1,
45
53
  visible: !1
46
- })) : []), g = C(() => c.loading && v.value.length === 0 ? Q.value : v.value), W = (e) => {
47
- if (r != null && r.value) {
48
- const t = e[r.value];
49
- return P.value.includes(t);
54
+ })) : []), v = m(() => o.loading && _.value.length === 0 ? Q.value : _.value), W = (e) => {
55
+ if (d != null && d.value) {
56
+ const t = e[d.value];
57
+ return z.value.includes(t);
50
58
  }
51
59
  return !1;
52
60
  }, X = (e) => {
53
- r != null && r.value && y("onClickCheckbox", String(e[r.value]));
54
- }, B = async (e, t = !1) => {
61
+ if (d != null && d.value) {
62
+ const t = String(e[d.value]);
63
+ y("onClickCheckbox", t);
64
+ }
65
+ }, D = async (e, t = !1) => {
55
66
  var l;
56
- e.expandible && (c.isMobileDevice || (e.visible = !e.visible), y("onItemExpansion", {
57
- ...e,
58
- isMobileDevice: c.isMobileDevice
59
- }), t && (await re(), (l = document.querySelector(".table__group--is-open")) == null || l.scrollIntoView({ behavior: "smooth" })));
60
- }, Z = (e) => {
61
- f.value = e.target.checked, y("selectAll", f.value);
62
- }, A = (e) => e.align ? `table__cell--${e.align}` : "table__cell--left", R = (e, t) => t === "actions" ? !1 : e.status === "BLOCKED" || e.status === "BUSINESS_BLOCK" || e.status === "PT_BLOCKED" ? !0 : !!e.$disabled, D = (e, t, l) => {
67
+ if (e.expandible) {
68
+ if (!o.isMobileDevice) {
69
+ const a = _.value.map(
70
+ (s) => s === e ? { ...s, visible: !s.visible } : s
71
+ );
72
+ _.value = a;
73
+ }
74
+ y("onItemExpansion", {
75
+ ...e,
76
+ visible: o.isMobileDevice ? e.visible : !e.visible,
77
+ isMobileDevice: o.isMobileDevice
78
+ }), t && (await oe(), (l = document.querySelector(".table__group--is-open")) == null || l.scrollIntoView({ behavior: "smooth" }));
79
+ }
80
+ }, Y = (e) => {
81
+ y("selectAll", e);
82
+ }, A = (e) => e.align ? `table__cell--${e.align}` : "table__cell--left", Z = (e, t) => t === "actions" ? !1 : e.status === "BLOCKED" || e.status === "BUSINESS_BLOCK" || e.status === "PT_BLOCKED" ? !0 : !!e.$disabled, V = (e, t, l) => {
63
83
  var a, s;
64
84
  if (!t) return "---";
65
85
  if (e === "date") {
66
- const u = (s = (a = k.value.items[l]) == null ? void 0 : a.rawElem) == null ? void 0 : s.operationHour;
67
- if (u) return `${t} ${u}`;
86
+ const r = (s = (a = k.value.items[l]) == null ? void 0 : a.rawElem) == null ? void 0 : s.operationHour;
87
+ if (r) return `${t} ${r}`;
68
88
  }
69
89
  return t;
70
- }, w = (e, t) => {
90
+ }, R = (e, t) => {
71
91
  if (!t.sortable) return;
72
92
  const l = ["", "asc", "desc"], s = (l.indexOf(t.sort || "") + 1) % l.length;
73
- if (m.value.forEach((u) => {
74
- u.sortable && u.key !== t.key && (u.sort = "");
93
+ if ($.value.forEach((r) => {
94
+ r.sortable && r.key !== t.key && (r.sort = "");
75
95
  }), t.sort = l[s], t.sort === "")
76
96
  return y("onHeaderSort", {});
77
97
  y("onHeaderSort", {
78
98
  sortBy: t.key,
79
99
  order: t.sort
80
100
  });
81
- }, I = (e) => {
82
- const t = {
83
- name: "filter",
84
- class: "",
85
- style: {
86
- transform: "translateY(6px)"
87
- }
88
- };
89
- return e.sort === "asc" && (t.class = "sortable_icon--active", t.style.transform = `${t.style.transform} scale(-1)`), e.sort === "desc" && (t.class = "sortable_icon--active"), t;
90
101
  }, H = (e = !1) => {
91
- v.value = [...k.value.items].map((t, l) => {
92
- var a;
102
+ const t = k.value.items.map((l, a) => {
103
+ var r;
104
+ const s = (r = _.value[a]) == null ? void 0 : r.visible;
93
105
  return {
94
- ...t,
95
- visible: e ? !!((a = v.value[l]) != null && a.visible) : !1
106
+ ...l,
107
+ visible: e && s !== void 0 ? s : !1
96
108
  };
97
109
  });
110
+ _.value = t;
98
111
  }, T = (e = !1) => {
99
- Y.value = !e, m.value = [
112
+ P.value = !e, $.value = [
100
113
  ...k.value.header.map((t) => ("sort" in t || Object.assign(t, { sort: "" }), t))
101
- ], H(e), f.value = c.checkedAll;
114
+ ], H(e);
102
115
  };
103
116
  T();
104
117
  const M = (e) => Object.keys(e);
105
- return se(() => {
118
+ return le(() => {
106
119
  var e;
107
- T(!0), (e = c.itemsExpanded) != null && e.length && c.itemsExpanded.forEach((t) => {
108
- k.value.items[t] && B(k.value.items[t], !0);
120
+ T(!0), (e = o.itemsExpanded) != null && e.length && o.itemsExpanded.forEach((t) => {
121
+ k.value.items[t] && D(k.value.items[t], !0);
109
122
  });
110
- }), ae(() => c.isMobileDevice, () => {
111
- v.value = [...k.value.items].map((e) => ({
123
+ }), te(() => o.isMobileDevice, () => {
124
+ _.value = [...k.value.items].map((e) => ({
112
125
  ...e,
113
126
  visible: !1
114
127
  }));
115
- }), z({
128
+ }), j({
116
129
  clearVisibleDetails: H
117
- }), oe(() => {
130
+ }), se(() => {
118
131
  var e;
119
- q.value = (e = S == null ? void 0 : S.vnode) == null ? void 0 : e.scopeId;
120
- }), (e, t) => (o(), n("div", {
121
- class: b(["table__container", G.value])
132
+ F.value = (e = S == null ? void 0 : S.vnode) == null ? void 0 : e.scopeId;
133
+ }), (e, t) => (n(), c("div", {
134
+ class: u(["table__container", G.value])
122
135
  }, [
123
136
  i("table", null, [
124
- e.hideHeaders ? d("", !0) : (o(), n("thead", de, [
137
+ e.hideHeaders ? b("", !0) : (n(), c("thead", de, [
125
138
  i("tr", null, [
126
- (o(!0), n(p, null, x(m.value, (l, a) => (o(), n("th", {
139
+ (n(!0), c(g, null, x($.value, (l, a) => (n(), c("th", {
127
140
  key: `header-${a}`,
128
141
  "data-header": `data-header-${l.key}`,
129
- class: b(["table__cell table__cell--heading body-1", [
142
+ class: u(["table__cell table__cell--heading body-1", [
130
143
  A(l),
131
144
  {
132
145
  "table__cell--shadow": l.sticky,
@@ -134,63 +147,63 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
134
147
  "table__cell--sortable": l.sortable
135
148
  }
136
149
  ]]),
137
- onClick: (s) => w(s, l)
150
+ onClick: (s) => R(s, l)
138
151
  }, [
139
152
  h(e.$slots, `header-${l.key}`, { item: l }, () => [
140
- l.type === "selectAll" ? (o(), n(p, { key: 0 }, [
141
- i("input", {
153
+ l.type === "selectAll" ? (n(), c(g, { key: 0 }, [
154
+ f(E, {
142
155
  id: `checkbox_${l.key}`,
143
- class: "rds-checkbox",
144
- type: "checkbox",
145
- checked: l.allSelected,
146
- onClick: l.callback
147
- }, null, 8, be),
156
+ "is-checked": l.allSelected,
157
+ "onUpdate:modelValue": l.callback
158
+ }, null, 8, ["id", "is-checked", "onUpdate:modelValue"]),
148
159
  i("label", {
149
160
  for: `checkbox_${l.key}`,
150
161
  class: "rds-checkbox__label"
151
- }, null, 8, ke)
152
- ], 64)) : (o(), n(p, { key: 1 }, [
162
+ }, null, 8, ue)
163
+ ], 64)) : (n(), c("div", be, [
153
164
  i("span", {
154
- style: ne({
165
+ style: ae({
155
166
  color: (l == null ? void 0 : l.sort) !== "" ? "#00ADC3" : ""
156
167
  }),
157
168
  class: "rds-title-02"
158
- }, O(l.text || ""), 5),
159
- l.sortable ? (o(), ce(L, ie({
160
- key: 0,
161
- class: "table__header__icon sortable_icon",
162
- ref_for: !0
163
- }, I(l)), null, 16)) : d("", !0)
164
- ], 64))
169
+ }, U(l.text || ""), 5),
170
+ l.sortable ? (n(), c("span", _e, [
171
+ i("span", {
172
+ class: u(["table__sortable-icon--up sortable-icon", `${l.sort === "asc" ? "active" : ""}`])
173
+ }, "▲", 2),
174
+ i("span", {
175
+ class: u(["table__sortable-icon--down sortable-icon", `${l.sort === "desc" ? "active" : ""}`])
176
+ }, "▼", 2)
177
+ ])) : b("", !0)
178
+ ]))
165
179
  ], !0)
166
- ], 10, _e))), 128)),
167
- $(r) && !e.hideSelectAll ? (o(), n("th", fe, [
168
- i("input", {
169
- id: "All",
180
+ ], 10, re))), 128)),
181
+ C(d) && !e.hideSelectAll ? (n(), c("th", ke, [
182
+ f(E, {
183
+ id: `checkbox-all-${B.value}`,
170
184
  class: "rds-checkbox table__checkbox",
171
- type: "checkbox",
172
- checked: f.value,
173
- onClick: Z
174
- }, null, 8, pe),
175
- t[0] || (t[0] = i("label", {
176
- for: "All",
185
+ "is-checked": o.checkedAll,
186
+ "onUpdate:modelValue": Y
187
+ }, null, 8, ["id", "is-checked"]),
188
+ i("label", {
189
+ for: `checkbox-all-${B.value}`,
177
190
  class: "rds-checkbox__label rds-checkbox__label--no-text"
178
- }, null, -1))
179
- ])) : d("", !0)
191
+ }, null, 8, pe)
192
+ ])) : b("", !0)
180
193
  ])
181
194
  ])),
182
195
  i("tbody", {
183
- class: b(J.value)
196
+ class: u(J.value)
184
197
  }, [
185
- E(N, { name: "fade" }, {
186
- default: V(() => [
187
- e.loading ? (o(), n("div", ye, [
188
- E(L, { name: "loading" })
189
- ])) : d("", !0)
198
+ f(O, { name: "fade" }, {
199
+ default: N(() => [
200
+ e.loading ? (n(), c("div", fe, [
201
+ f(ne, { name: "loading" })
202
+ ])) : b("", !0)
190
203
  ]),
191
204
  _: 1
192
205
  }),
193
- g.value.length !== 0 ? (o(!0), n(p, { key: 0 }, x(g.value, (l, a) => (o(), n(p, {
206
+ v.value.length !== 0 ? (n(!0), c(g, { key: 0 }, x(v.value, (l, a) => (n(), c(g, {
194
207
  key: `row-${a}}`
195
208
  }, [
196
209
  i("tr", {
@@ -198,24 +211,24 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
198
211
  ref: (s) => {
199
212
  K.value[a] = s;
200
213
  },
201
- class: b(["table__group", [
214
+ class: u(["table__group", [
202
215
  { "table__group--odd": a % 2 === 0 },
203
216
  { "table__group--is-open rds-background-grey": l.visible },
204
217
  { "table__group--expandible": l.expandible },
205
218
  l.$class || ""
206
219
  ]]),
207
- onClick: () => B(l)
220
+ onClick: () => D(l)
208
221
  }, [
209
- (o(!0), n(p, null, x(m.value, (s, u) => (o(), n("td", {
210
- key: `column-${u}`,
211
- "column-key": u,
222
+ (n(!0), c(g, null, x($.value, (s, r) => (n(), c("td", {
223
+ key: `column-${r}`,
224
+ "column-key": r,
212
225
  "data-cell": `data-cell-${s.key}`,
213
- class: b(["table__cell rds-body-01", [
226
+ class: u(["table__cell rds-body-01", [
214
227
  A(s),
215
228
  {
216
229
  "table__cell--shadow": s.sticky,
217
230
  "table__cell--no-sticky": !s.sticky,
218
- "table__cell--disabled": R(l, s.key)
231
+ "table__cell--disabled": Z(l, s.key)
219
232
  },
220
233
  l[`$${s.key}_class`] || ""
221
234
  ]])
@@ -225,69 +238,65 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, _e = ["data-hea
225
238
  item: l
226
239
  }, () => [
227
240
  i("span", {
228
- title: D(s.key, String(l[s.key] || ""), a)
229
- }, O(D(s.key, String(l[s.key] || ""), a)), 9, he)
241
+ title: V(s.key, String(l[s.key] || ""), a)
242
+ }, U(V(s.key, String(l[s.key] || ""), a)), 9, ge)
230
243
  ], !0)
231
- ], 10, ge))), 128)),
232
- $(r) ? (o(), n("td", $e, [
244
+ ], 10, ve))), 128)),
245
+ C(d) ? (n(), c("td", he, [
233
246
  h(e.$slots, "td-checkbox", { item: l }, () => [
234
- i("input", {
235
- id: `add-${a}-${l[$(r)]}`,
236
- ref_for: !0,
237
- ref: () => {
238
- U.value[String(l[$(r)] || "")] = !0;
239
- },
247
+ f(E, {
248
+ id: `add-${a}-${l[C(d)]}`,
240
249
  name: "checkbox-item",
241
- class: "rds-checkbox",
242
- checked: W(l) || f.value,
243
- disabled: f.value,
244
- type: "checkbox",
245
- onClick: (s) => X(l)
246
- }, null, 8, me),
250
+ "is-checked": W(l) || o.checkedAll,
251
+ disabled: !1,
252
+ "onUpdate:modelValue": (s) => X(l)
253
+ }, null, 8, ["id", "is-checked", "onUpdate:modelValue"]),
247
254
  i("label", {
248
- for: `add-${a}-${l[$(r)]}`,
255
+ for: `add-${a}-${l[C(d)]}`,
249
256
  class: "rds-checkbox__label rds-checkbox__label--no-text"
250
- }, null, 8, Ce)
257
+ }, null, 8, $e)
251
258
  ], !0)
252
- ])) : d("", !0)
253
- ], 10, ve),
254
- g.value[a].visible ? (o(), n("tr", {
259
+ ])) : b("", !0)
260
+ ], 10, ye),
261
+ v.value[a].visible ? (n(), c("tr", {
255
262
  key: 0,
256
- class: b(["table__group table__group--dropdown", [
263
+ class: u(["table__group table__group--dropdown", [
257
264
  {
258
265
  "table__group--odd": a % 2 === 0
259
266
  }
260
267
  ]])
261
268
  }, [
262
269
  i("td", {
263
- class: b(["table__cell table__group--dropdown rds-background-grey", {
270
+ class: u(["table__cell table__group--dropdown rds-background-grey", {
264
271
  "table__group--dropdown-disabled": l.status !== "ACTIVE",
265
272
  "table__cell--table": !l.expandible
266
273
  }]),
267
274
  colspan: M(l).length
268
275
  }, [
269
276
  h(e.$slots, "expandible", { item: l }, void 0, !0)
270
- ], 10, Se)
271
- ], 2)) : d("", !0),
272
- g.value[a].visible ? (o(), n("tr", {
277
+ ], 10, me)
278
+ ], 2)) : b("", !0),
279
+ v.value[a].visible ? (n(), c("tr", {
273
280
  key: 1,
274
281
  class: "table__group--spacer",
275
282
  colspan: M(l).length
276
- }, null, 8, xe)) : d("", !0)
277
- ], 64))), 128)) : d("", !0)
283
+ }, null, 8, Ce)) : b("", !0)
284
+ ], 64))), 128)) : b("", !0)
278
285
  ], 2)
279
286
  ]),
280
- E(N, { name: "fade" }, {
281
- default: V(() => [
282
- e.showEmptyState && !e.loading && g.value.length === 0 ? h(e.$slots, "empty", { key: 0 }, () => [
283
- t[1] || (t[1] = i("p", { class: "rds-headline-03" }, " No hay datos para mostrar ", -1))
284
- ], !0) : d("", !0)
287
+ f(O, { name: "fade" }, {
288
+ default: N(() => [
289
+ e.showEmptyState && !e.loading && v.value.length === 0 ? h(e.$slots, "empty", { key: 0 }, () => [
290
+ t[0] || (t[0] = i("div", { class: "table__empty-state" }, [
291
+ i("h3", { class: "rds-title-02" }, " No hay elementos a mostrar. ")
292
+ ], -1))
293
+ ], !0) : b("", !0)
285
294
  ]),
286
295
  _: 3
287
296
  })
288
297
  ], 2));
289
298
  }
290
- }), He = /* @__PURE__ */ ue(Ee, [["__scopeId", "data-v-2f3d4308"]]);
299
+ }), Ve = /* @__PURE__ */ ie(Se, [["__scopeId", "data-v-d17d793d"]]);
291
300
  export {
292
- He as default
301
+ Ve as default
293
302
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as h, toRefs as x, computed as u, openBlock as o, createElementBlock as $, normalizeClass as r, unref as t, createBlock as p, createCommentVNode as d, createTextVNode as B, toDisplayString as S } from "vue";
2
- import { I as f } from "./icon-svg-CeKfjk3j.js";
1
+ import { defineComponent as h, toRefs as x, computed as u, openBlock as o, createElementBlock as $, normalizeClass as r, unref as t, createBlock as p, createCommentVNode as d, createTextVNode as S, toDisplayString as B } from "vue";
2
+ import { R as f } from "./icon-svg-DGp2yHJn.js";
3
3
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/tag.css';const C = /* @__PURE__ */ h({
5
5
  __name: "tag",
@@ -76,7 +76,7 @@ import './style/tag.css';const C = /* @__PURE__ */ h({
76
76
  class: r(["rds-e-tag__icon", i.value]),
77
77
  "aria-hidden": "true"
78
78
  }, null, 8, ["name", "class"])) : d("", !0),
79
- B(" " + S(t(_)) + " ", 1),
79
+ S(" " + B(t(_)) + " ", 1),
80
80
  t(c) ? (o(), p(f, {
81
81
  key: 1,
82
82
  name: "arrow_right",
@@ -85,7 +85,7 @@ import './style/tag.css';const C = /* @__PURE__ */ h({
85
85
  }, null, 8, ["class"])) : d("", !0)
86
86
  ], 2));
87
87
  }
88
- }), j = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e784d437"]]);
88
+ }), D = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e784d437"]]);
89
89
  export {
90
- j as default
90
+ D as default
91
91
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, mergeModels as J, useModel as K, toRefs as L, ref as O, computed as o, openBlock as s, createElementBlock as f, normalizeClass as h, createElementVNode as a, withDirectives as Q, unref as e, vModelText as W, renderSlot as y, createBlock as M, mergeProps as q, toHandlers as T, createCommentVNode as i, createTextVNode as X, toDisplayString as u } from "vue";
2
- import { I as $ } from "./icon-svg-CeKfjk3j.js";
1
+ import { defineComponent as G, mergeModels as J, useModel as K, toRefs as L, ref as O, computed as o, openBlock as s, createElementBlock as f, normalizeClass as h, createElementVNode as a, withDirectives as Q, unref as e, vModelText as W, renderSlot as y, createBlock as I, mergeProps as q, toHandlers as T, createCommentVNode as i, createTextVNode as X, toDisplayString as u } from "vue";
2
+ import { R as $ } from "./icon-svg-DGp2yHJn.js";
3
3
  import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/textArea.css';function b(t, _ = !0, d = !0) {
5
5
  return _ && !t.trim() ? (console.warn("Advertencia: El valor no puede estar vacío"), !1) : d && !/^[\w\-:]+$/.test(t) ? (console.warn("Advertencia: El valor contiene caracteres inválidos"), !1) : !0;
@@ -138,23 +138,23 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
138
138
  setup(t) {
139
139
  const _ = t, d = K(t, "modelValue"), {
140
140
  label: w,
141
- id: k,
141
+ id: S,
142
142
  disabled: p,
143
143
  maxlength: m,
144
144
  minlength: g,
145
145
  modelValue: c,
146
146
  icon: A,
147
- rightIcon: S,
148
- helper: z,
147
+ rightIcon: k,
148
+ helper: D,
149
149
  error: x,
150
- helperText: D,
150
+ helperText: R,
151
151
  clearable: V,
152
- lengthError: F
153
- } = L(_), v = O(!1), P = () => {
152
+ lengthError: z
153
+ } = L(_), v = O(!1), F = () => {
154
154
  v.value = !1;
155
- }, j = () => {
155
+ }, P = () => {
156
156
  v.value = !0;
157
- }, B = o(() => c.value.length === m.value), E = o(() => c.value.length === 0 ? !1 : c.value.length < g.value), N = o(() => F.value && (B.value || E.value)), H = o(() => {
157
+ }, B = o(() => c.value.length === m.value), E = o(() => c.value.length === 0 ? !1 : c.value.length < g.value), N = o(() => z.value && (B.value || E.value)), j = o(() => {
158
158
  const r = [];
159
159
  return c.value && r.push("rds-e-textarea--filled"), x.value && r.push("rds-e-textarea--error"), p.value && r.push("rds-e-textarea--disabled"), N.value && r.push("rds-e-textarea--error"), r.join(" ");
160
160
  }), l = o(() => {
@@ -167,7 +167,7 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
167
167
  }
168
168
  }, n = {
169
169
  left: { ...r },
170
- right: { ...r, name: S.value }
170
+ right: { ...r, name: k.value }
171
171
  };
172
172
  return V.value && (n.right = {
173
173
  ...r,
@@ -177,16 +177,16 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
177
177
  click: () => d.value = ""
178
178
  }
179
179
  }), n;
180
- }), R = o(() => c.value.length);
180
+ }), H = o(() => c.value.length);
181
181
  return (r, n) => {
182
- var C, I;
182
+ var C, M;
183
183
  return s(), f("div", {
184
- class: h(["rds-e-textarea", H.value])
184
+ class: h(["rds-e-textarea", j.value])
185
185
  }, [
186
186
  a("div", Z, [
187
187
  a("div", ee, [
188
188
  Q(a("textarea", {
189
- id: (C = e(k)) == null ? void 0 : C.toString(),
189
+ id: (C = e(S)) == null ? void 0 : C.toString(),
190
190
  "onUpdate:modelValue": n[0] || (n[0] = (U) => d.value = U),
191
191
  type: "text",
192
192
  class: h(["rds-e-textarea__input", { "rds-e-textarea__input--active": v.value }]),
@@ -195,8 +195,8 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
195
195
  minlength: e(g),
196
196
  rows: t.rows,
197
197
  disabled: e(p),
198
- onBlur: P,
199
- onFocus: j
198
+ onBlur: F,
199
+ onFocus: P
200
200
  }, null, 42, te), [
201
201
  [W, d.value]
202
202
  ]),
@@ -216,14 +216,14 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
216
216
  ])
217
217
  ], -1)),
218
218
  a("label", {
219
- for: (I = e(k)) == null ? void 0 : I.toString(),
219
+ for: (M = e(S)) == null ? void 0 : M.toString(),
220
220
  class: h(["rds-e-textarea__label", {
221
221
  "rds-e-textarea__label--with-icon": l.value.left.name,
222
222
  "rds-e-textarea__label--active": v.value
223
223
  }])
224
224
  }, [
225
225
  y(r.$slots, "left-icon", {}, () => [
226
- l.value.left.name ? (s(), M($, q({
226
+ l.value.left.name ? (s(), I($, q({
227
227
  key: 0,
228
228
  class: ["rds-e-textarea__icon rds-e-textarea__icon--left", { "rds-e-textarea__icon--hidden": v.value }],
229
229
  "aria-hidden": "true"
@@ -237,9 +237,9 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
237
237
  "rds-e-textarea__counter--clearable": e(V)
238
238
  }])
239
239
  }, [
240
- t.counter && !e(S) ? (s(), f("p", ae, u(R.value) + "/" + u(e(m)), 1)) : i("", !0),
240
+ t.counter && !e(k) ? (s(), f("p", ae, u(H.value) + "/" + u(e(m)), 1)) : i("", !0),
241
241
  y(r.$slots, "right-icon", {}, () => [
242
- l.value.right.name && !l.value.left.name ? (s(), M($, q({
242
+ l.value.right.name && !l.value.left.name ? (s(), I($, q({
243
243
  key: 0,
244
244
  class: "rds-e-textarea__icon rds-e-textarea__icon--right",
245
245
  "aria-hidden": "true"
@@ -255,7 +255,7 @@ const Z = { class: "rds-e-textarea__container" }, ee = { class: "rds-e-textarea_
255
255
  E.value ? (s(), f("li", ne, " Min text length is " + u(e(g)), 1)) : i("", !0),
256
256
  a("li", null, [
257
257
  y(r.$slots, "helper-text", {}, () => [
258
- e(z) || e(x) ? (s(), f("span", se, u(e(D)), 1)) : i("", !0)
258
+ e(D) || e(x) ? (s(), f("span", se, u(e(R)), 1)) : i("", !0)
259
259
  ], !0)
260
260
  ])
261
261
  ], 2)