energy-components 1.21.0-beta.0 → 1.22.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 (96) hide show
  1. package/dist/components/accordion.es.js +71 -53
  2. package/dist/components/avatar.es.js +1 -1
  3. package/dist/components/button.es.js +1 -1
  4. package/dist/components/checkbox.es.js +1 -1
  5. package/dist/components/collapsable.es.js +1 -1
  6. package/dist/components/collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js +86 -0
  7. package/dist/components/datepicker.es.js +1 -1
  8. package/dist/components/directAccess.es.js +1 -1
  9. package/dist/components/dragAndDrop.es.js +1 -1
  10. package/dist/components/dropdown.es.js +1 -1
  11. package/dist/components/fileUploadItem.es.js +1 -1
  12. package/dist/components/filterChip.es.js +1 -1
  13. package/dist/components/filterTag.es.js +1 -1
  14. package/dist/components/{floating-ui.vue-oA1DfKeS.js → floating-ui.vue-DHEoOe5S.js} +305 -303
  15. package/dist/components/{icon-svg-C8XeOnqu.js → icon-svg-K8-vLJgV.js} +1257 -792
  16. package/dist/components/iconList.es.js +1 -1
  17. package/dist/components/iconSvg.es.js +1 -1
  18. package/dist/components/index.es.js +2 -2
  19. package/dist/components/infoBox.es.js +1 -1
  20. package/dist/components/link.es.js +1 -1
  21. package/dist/components/modal.es.js +41 -39
  22. package/dist/components/multiselectcontentwrapper.es.js +2 -2
  23. package/dist/components/persistentToast.es.js +1 -1
  24. package/dist/components/popover.es.js +2 -2
  25. package/dist/components/popoverMenu.es.js +51 -51
  26. package/dist/components/progressBar.es.js +2 -2
  27. package/dist/components/quantitySelector.es.js +1 -1
  28. package/dist/components/radioButton.es.js +1 -1
  29. package/dist/components/selectionChip.es.js +1 -1
  30. package/dist/components/sidedrawer.es.js +1 -1
  31. package/dist/components/style/accordion.css +1 -1
  32. package/dist/components/style/accordionGroup.css +1 -1
  33. package/dist/components/style/actionButton.css +1 -1
  34. package/dist/components/style/avatar.css +1 -1
  35. package/dist/components/style/badge.css +1 -1
  36. package/dist/components/style/breadcrumbs.css +1 -1
  37. package/dist/components/style/button.css +1 -1
  38. package/dist/components/style/card.css +1 -1
  39. package/dist/components/style/checkbox.css +1 -1
  40. package/dist/components/style/collapsable.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/divider.css +1 -1
  44. package/dist/components/style/dragAndDrop.css +1 -1
  45. package/dist/components/style/dropdown.css +1 -1
  46. package/dist/components/style/fileUploadItem.css +1 -1
  47. package/dist/components/style/filterChip.css +1 -1
  48. package/dist/components/style/filterTag.css +1 -1
  49. package/dist/components/style/floatingActionButton.css +1 -1
  50. package/dist/components/style/icon-svg.css +1 -1
  51. package/dist/components/style/iconList.css +1 -1
  52. package/dist/components/style/indicator.css +1 -1
  53. package/dist/components/style/infoBox.css +1 -1
  54. package/dist/components/style/link.css +1 -1
  55. package/dist/components/style/loader.css +1 -1
  56. package/dist/components/style/modal.css +1 -1
  57. package/dist/components/style/multiselect.css +1 -1
  58. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  59. package/dist/components/style/overlay.css +1 -1
  60. package/dist/components/style/pagination.css +1 -1
  61. package/dist/components/style/persistentToast.css +1 -1
  62. package/dist/components/style/popover.css +1 -1
  63. package/dist/components/style/popoverMenu.css +1 -1
  64. package/dist/components/style/progressBar.css +1 -1
  65. package/dist/components/style/quantitySelector.css +1 -1
  66. package/dist/components/style/radioButton.css +1 -1
  67. package/dist/components/style/selectionChip.css +1 -1
  68. package/dist/components/style/sidebar.css +1 -1
  69. package/dist/components/style/sidedrawer.css +1 -1
  70. package/dist/components/style/snackBar.css +1 -1
  71. package/dist/components/style/switch.css +1 -1
  72. package/dist/components/style/tabBar.css +1 -1
  73. package/dist/components/style/tablepaginatedcomponent.css +1 -1
  74. package/dist/components/style/tableslotedcomponent.css +1 -1
  75. package/dist/components/style/tag.css +1 -1
  76. package/dist/components/style/textArea.css +1 -1
  77. package/dist/components/style/textField.css +1 -1
  78. package/dist/components/style/toggle.css +1 -1
  79. package/dist/components/style/tooltip.css +1 -1
  80. package/dist/components/switch.es.js +1 -1
  81. package/dist/components/tabBar.es.js +1 -1
  82. package/dist/components/tablepaginatedcomponent.es.js +46 -46
  83. package/dist/components/tableslotedcomponent.es.js +119 -119
  84. package/dist/components/tag.es.js +1 -1
  85. package/dist/components/textArea.es.js +1 -1
  86. package/dist/components/textField.es.js +136 -131
  87. package/dist/components/toggle.es.js +24 -24
  88. package/dist/components/tooltip.es.js +2 -2
  89. package/dist/energy-components.es.js +5758 -5266
  90. package/dist/energy-components.umd.js +2 -2
  91. package/dist/style.css +1 -1
  92. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +19 -0
  93. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +1 -1
  94. package/dist/types/tsconfig.tsbuildinfo +1 -1
  95. package/package.json +2 -2
  96. package/dist/components/collapsable.scss_vue_type_style_index_0_src_true_lang-6HkNT8L9.js +0 -86
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, toRefs as F, ref as i, watch as M, watchEffect as N, createElementBlock as v, openBlock as u, createBlock as V, withDirectives as K, Fragment as z, renderList as g, unref as k, renderSlot as h, mergeProps as q, createSlots as S, withCtx as B, normalizeProps as C, guardReactiveProps as w, createVNode as G, vShow as J } from "vue";
1
+ import { defineComponent as H, toRefs as F, ref as i, watch as M, watchEffect as N, createElementBlock as g, openBlock as u, createBlock as V, withDirectives as K, Fragment as z, renderList as h, unref as S, renderSlot as P, mergeProps as q, createSlots as B, withCtx as C, normalizeProps as w, guardReactiveProps as A, createVNode as G, vShow as J } from "vue";
2
2
  import Q from "./tableslotedcomponent.es.js";
3
3
  import U from "./pagination.es.js";
4
4
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -30,14 +30,14 @@ import './style/tablepaginatedcomponent.css';const X = { class: "table_paginated
30
30
  disableFirstLoad: { type: Boolean }
31
31
  },
32
32
  emits: ["update:options", "update:reset", "update:selection", "update:selectedAll", "update:sort", "onItemExpansion"],
33
- setup(A, { expose: E, emit: _ }) {
34
- const t = A, s = _, {
33
+ setup(c, { expose: E, emit: x }) {
34
+ const t = c, s = x, {
35
35
  loading: I,
36
36
  items: d,
37
37
  selectableKey: L,
38
38
  header: $,
39
- asynchrone: P
40
- } = F(t), c = i(), p = i([]), n = i([]), b = i({
39
+ asynchrone: b
40
+ } = F(t), m = i(), p = i([]), n = i([]), y = i({
41
41
  item: {
42
42
  header: $,
43
43
  items: p
@@ -53,68 +53,68 @@ import './style/tablepaginatedcomponent.css';const X = { class: "table_paginated
53
53
  hideSelectAll: t.hideSelectAll,
54
54
  showEmptyState: t.showEmptyState,
55
55
  mockItems: t.itemsPerPage[0]
56
- }), y = i(null), m = i(1), r = i(), D = () => {
57
- p.value = [], m.value = 1, r.value = void 0, s("update:reset");
56
+ }), k = i(null), f = i(1), r = i(), D = () => {
57
+ p.value = [], f.value = 1, r.value = void 0, s("update:reset");
58
58
  }, O = () => {
59
59
  p.value = d.value;
60
60
  }, T = (e) => {
61
61
  const a = {};
62
62
  if ("pagination" in e) {
63
- const o = e.pagination;
64
- o.reset && D();
65
- let l = !1;
66
- r.value = o, (o.page ?? 0) > m.value && (m.value = o.page ?? 0, l = !0), r.value && (r.value.isNewPage = l);
63
+ const l = e.pagination;
64
+ l.reset && D();
65
+ let o = !1;
66
+ r.value = l, (l.page ?? 0) > f.value && (f.value = l.page ?? 0, o = !0), r.value && (r.value.isNewPage = o);
67
67
  }
68
- r.value && Object.assign(a, r.value), c.value && c.value.clearVisibleDetails(), s("update:options", a);
69
- }, j = (e) => {
68
+ r.value && Object.assign(a, r.value), m.value && m.value.clearVisibleDetails(), s("update:options", a);
69
+ }, _ = (e) => {
70
70
  const a = n.value.indexOf(e);
71
71
  a > -1 ? n.value.splice(a, 1) : n.value.push(e), s("update:selection", n.value);
72
- }, x = () => {
72
+ }, j = () => {
73
73
  var e;
74
- (e = y.value) == null || e.resetPagination();
74
+ (e = k.value) == null || e.resetPagination();
75
75
  }, R = (e) => {
76
- e && (n.value = []), b.value.checkedAll = e, s("update:selectedAll", e);
76
+ e && (n.value = []), y.value.checkedAll = e, s("update:selectedAll", e);
77
77
  };
78
- return n.value = [...t.initChecked], P.value || (p.value = d.value), M(d, () => {
78
+ return n.value = [...t.initChecked], b.value || (p.value = d.value), M(d, () => {
79
79
  O();
80
80
  }, { deep: !0 }), N(() => {
81
- if (!P.value && d.value.length >= 0) {
81
+ if (!b.value && d.value.length >= 0) {
82
82
  const e = (t.activePage - 1) * t.itemsPerPage[0], a = e + t.itemsPerPage[0];
83
83
  p.value = d.value.slice(e, a);
84
84
  }
85
85
  }), E({
86
86
  /** Fuerza a refrescar la paginacion y la tabla */
87
- $reset: x
88
- }), (e, a) => (u(), v("div", X, [
89
- e.$slots.mobile && e.isMobileDevice ? (u(!0), v(z, { key: 0 }, g(k(d), (o, l) => (u(), v("div", {
90
- key: `mobile-${l}`,
87
+ $reset: j
88
+ }), (e, a) => (u(), g("div", X, [
89
+ e.$slots.mobile && c.isMobileDevice ? (u(!0), g(z, { key: 0 }, h(S(d), (l, o) => (u(), g("div", {
90
+ key: `mobile-${o}`,
91
91
  class: "table_paginted__mobile_item"
92
92
  }, [
93
- h(e.$slots, "mobile", { item: o }, void 0, !0)
93
+ P(e.$slots, "mobile", { item: l }, void 0, !0)
94
94
  ]))), 128)) : (u(), V(Q, q({
95
95
  key: 1,
96
96
  ref_key: "tableSloted",
97
- ref: c,
97
+ ref: m,
98
98
  class: "mb-5"
99
- }, b.value, {
100
- loading: k(I),
101
- "is-mobile-device": e.isMobileDevice,
102
- "items-expanded": e.itemsExpanded,
103
- onOnClickCheckbox: j,
99
+ }, y.value, {
100
+ loading: S(I),
101
+ "is-mobile-device": c.isMobileDevice,
102
+ "items-expanded": c.itemsExpanded,
103
+ onOnClickCheckbox: _,
104
104
  onSelectAll: R,
105
- onOnItemExpansion: a[0] || (a[0] = (o) => s("onItemExpansion", o)),
106
- onOnHeaderSort: a[1] || (a[1] = (o) => s("update:sort", o))
107
- }), S({ _: 2 }, [
108
- g(e.$slots, (o, l) => ({
109
- name: l,
110
- fn: B((f) => [
111
- h(e.$slots, l, C(w(f || {})), void 0, !0)
105
+ onOnItemExpansion: a[0] || (a[0] = (l) => s("onItemExpansion", l)),
106
+ onOnHeaderSort: a[1] || (a[1] = (l) => s("update:sort", l))
107
+ }), B({ _: 2 }, [
108
+ h(e.$slots, (l, o) => ({
109
+ name: o,
110
+ fn: C((v) => [
111
+ P(e.$slots, o, w(A(v || {})), void 0, !0)
112
112
  ])
113
113
  }))
114
114
  ]), 1040, ["loading", "is-mobile-device", "items-expanded"])),
115
115
  K(G(U, {
116
116
  ref_key: "paginationComponentRef",
117
- ref: y,
117
+ ref: k,
118
118
  class: "rds-mt-16",
119
119
  "total-items": t.totalItemsLength,
120
120
  "current-page": t.activePage,
@@ -123,20 +123,20 @@ import './style/tablepaginatedcomponent.css';const X = { class: "table_paginated
123
123
  "jump-to": t.jumpTo,
124
124
  selected: !0,
125
125
  "disable-first-load": t.disableFirstLoad,
126
- onPageChanged: a[2] || (a[2] = (o) => T({ pagination: o }))
127
- }, S({ _: 2 }, [
128
- g(e.$slots, (o, l) => ({
129
- name: l,
130
- fn: B((f) => [
131
- h(e.$slots, l, C(w(f || {})), void 0, !0)
126
+ onPageChanged: a[2] || (a[2] = (l) => T({ pagination: l }))
127
+ }, B({ _: 2 }, [
128
+ h(e.$slots, (l, o) => ({
129
+ name: o,
130
+ fn: C((v) => [
131
+ P(e.$slots, o, w(A(v || {})), void 0, !0)
132
132
  ])
133
133
  }))
134
134
  ]), 1032, ["total-items", "current-page", "items-per-page", "hide-leyend", "jump-to", "disable-first-load"]), [
135
- [J, !e.hidePagination]
135
+ [J, !c.hidePagination]
136
136
  ])
137
137
  ]));
138
138
  }
139
- }), oe = /* @__PURE__ */ W(Y, [["__scopeId", "data-v-862118a8"]]);
139
+ }), le = /* @__PURE__ */ W(Y, [["__scopeId", "data-v-862118a8"]]);
140
140
  export {
141
- oe as default
141
+ le as default
142
142
  };
@@ -1,6 +1,6 @@
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, createElementBlock as n, openBlock as c, normalizeClass as u, createElementVNode as i, createVNode as f, createCommentVNode as b, Fragment as g, renderList as x, renderSlot as h, normalizeStyle as ae, toDisplayString as U, unref as C, Transition as O, withCtx as N, nextTick as oe } from "vue";
2
- import { R as ne } from "./icon-svg-C8XeOnqu.js";
3
- import E from "./checkbox.es.js";
1
+ import { defineComponent as w, toRefs as I, getCurrentInstance as ee, ref as p, computed as x, watchEffect as le, watch as te, onMounted as se, createElementBlock as n, openBlock as c, normalizeClass as u, createElementVNode as i, createVNode as v, createCommentVNode as b, Fragment as h, renderList as E, renderSlot as $, normalizeStyle as ae, toDisplayString as O, unref as C, Transition as N, withCtx as L, nextTick as oe } from "vue";
2
+ import { R as ne } from "./icon-svg-K8-vLJgV.js";
3
+ import B from "./checkbox.es.js";
4
4
  import { g as ce } from "./getInstance-GhoEcxLF.js";
5
5
  import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-header", "onClick"], ue = ["for"], be = {
@@ -12,13 +12,13 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-hea
12
12
  }, ke = {
13
13
  key: 0,
14
14
  class: "table__cell table__cell--heading body-1 table__cell--right"
15
- }, pe = ["for"], fe = {
15
+ }, fe = ["for"], pe = {
16
16
  key: 0,
17
17
  class: "loading-overlay"
18
18
  }, ve = ["onClick"], ye = ["column-key", "data-cell"], ge = ["title"], he = {
19
19
  key: 0,
20
20
  class: "table__cell table__cell--shadow table__cell--right"
21
- }, $e = ["for"], me = ["colspan"], Ce = ["colspan"], Se = /* @__PURE__ */ w({
21
+ }, $e = ["for"], me = ["colspan"], xe = ["colspan"], Ce = /* @__PURE__ */ w({
22
22
  __name: "TableSlotedComponent",
23
23
  props: {
24
24
  loading: { type: Boolean, default: !1 },
@@ -39,171 +39,171 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-hea
39
39
  mockItems: {}
40
40
  },
41
41
  emits: ["selectAll", "onClickCheckbox", "onItemExpansion", "onHeaderSort"],
42
- setup(L, { expose: j, emit: q }) {
43
- const o = L, v = 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(() => {
44
- const e = "table";
45
- let t = e;
46
- return t = `${t} ${e}--${o.variant}`, o.condensed && (t = `${t} ${e}--condensed`), t;
47
- }), J = m(() => {
48
- const e = "table__body";
49
- let t = e;
50
- return t = `${t} ${e}--${o.variant}`, o.condensed && (t = `${t} ${e}--condensed`), t;
51
- }), Q = m(() => o.mockItems ? Array.from({ length: o.mockItems }, () => ({
42
+ setup(k, { expose: j, emit: q }) {
43
+ const o = k, y = q, { item: f, listChecked: z, selectableKey: d } = I(o), S = ee(), F = p(), D = p(`table-${ce()}`), _ = p([]), m = p([]), K = p([]), P = p(!0), G = x(() => {
44
+ const l = "table";
45
+ let t = l;
46
+ return t = `${t} ${l}--${o.variant}`, o.condensed && (t = `${t} ${l}--condensed`), t;
47
+ }), J = x(() => {
48
+ const l = "table__body";
49
+ let t = l;
50
+ return t = `${t} ${l}--${o.variant}`, o.condensed && (t = `${t} ${l}--condensed`), t;
51
+ }), Q = x(() => o.mockItems ? Array.from({ length: o.mockItems }, () => ({
52
52
  expandible: !1,
53
53
  visible: !1
54
- })) : []), y = m(() => o.loading && _.value.length === 0 ? Q.value : _.value), W = (e) => {
54
+ })) : []), g = x(() => o.loading && _.value.length === 0 ? Q.value : _.value), W = (l) => {
55
55
  if (d != null && d.value) {
56
- const t = e[d.value];
56
+ const t = l[d.value];
57
57
  return z.value.includes(t);
58
58
  }
59
59
  return !1;
60
- }, X = (e) => {
60
+ }, X = (l) => {
61
61
  if (d != null && d.value) {
62
- const t = String(e[d.value]);
63
- v("onClickCheckbox", t);
62
+ const t = String(l[d.value]);
63
+ y("onClickCheckbox", t);
64
64
  }
65
- }, D = async (e, t = !1) => {
66
- var l;
67
- if (e.expandible) {
65
+ }, A = async (l, t = !1) => {
66
+ var e;
67
+ if (l.expandible) {
68
68
  if (!o.isMobileDevice) {
69
69
  const a = _.value.map(
70
- (s) => s === e ? { ...s, visible: !s.visible } : s
70
+ (s) => s === l ? { ...s, visible: !s.visible } : s
71
71
  );
72
72
  _.value = a;
73
73
  }
74
- v("onItemExpansion", {
75
- ...e,
76
- visible: o.isMobileDevice ? e.visible : !e.visible,
74
+ y("onItemExpansion", {
75
+ ...l,
76
+ visible: o.isMobileDevice ? l.visible : !l.visible,
77
77
  isMobileDevice: o.isMobileDevice
78
- }), t && (await oe(), (l = document.querySelector(".table__group--is-open")) == null || l.scrollIntoView({ behavior: "smooth" }));
78
+ }), t && (await oe(), (e = document.querySelector(".table__group--is-open")) == null || e.scrollIntoView({ behavior: "smooth" }));
79
79
  }
80
- }, Y = (e) => {
81
- v("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) => {
80
+ }, Y = (l) => {
81
+ y("selectAll", l);
82
+ }, V = (l) => l.align ? `table__cell--${l.align}` : "table__cell--left", Z = (l, t) => t === "actions" ? !1 : l.status === "BLOCKED" || l.status === "BUSINESS_BLOCK" || l.status === "PT_BLOCKED" ? !0 : !!l.$disabled, H = (l, t, e) => {
83
83
  var a, s;
84
84
  if (!t) return "---";
85
- if (e === "date") {
86
- const r = (s = (a = k.value.items[l]) == null ? void 0 : a.rawElem) == null ? void 0 : s.operationHour;
85
+ if (l === "date") {
86
+ const r = (s = (a = f.value.items[e]) == null ? void 0 : a.rawElem) == null ? void 0 : s.operationHour;
87
87
  if (r) return `${t} ${r}`;
88
88
  }
89
89
  return t;
90
- }, R = (e, t) => {
90
+ }, R = (l, t) => {
91
91
  if (!t.sortable) return;
92
- const l = ["", "asc", "desc"], s = (l.indexOf(t.sort || "") + 1) % l.length;
93
- if ($.value.forEach((r) => {
92
+ const e = ["", "asc", "desc"], s = (e.indexOf(t.sort || "") + 1) % e.length;
93
+ if (m.value.forEach((r) => {
94
94
  r.sortable && r.key !== t.key && (r.sort = "");
95
- }), t.sort = l[s], t.sort === "")
96
- return v("onHeaderSort", {});
97
- v("onHeaderSort", {
95
+ }), t.sort = e[s], t.sort === "")
96
+ return y("onHeaderSort", {});
97
+ y("onHeaderSort", {
98
98
  sortBy: t.key,
99
99
  order: t.sort
100
100
  });
101
- }, H = (e = !1) => {
102
- const t = k.value.items.map((l, a) => {
101
+ }, T = (l = !1) => {
102
+ const t = f.value.items.map((e, a) => {
103
103
  var r;
104
104
  const s = (r = _.value[a]) == null ? void 0 : r.visible;
105
105
  return {
106
- ...l,
107
- visible: e && s !== void 0 ? s : !1
106
+ ...e,
107
+ visible: l && s !== void 0 ? s : !1
108
108
  };
109
109
  });
110
110
  _.value = t;
111
- }, T = (e = !1) => {
112
- P.value = !e, $.value = [
113
- ...k.value.header.map((t) => ("sort" in t || Object.assign(t, { sort: "" }), t))
114
- ], H(e);
111
+ }, M = (l = !1) => {
112
+ P.value = !l, m.value = [
113
+ ...f.value.header.map((t) => ("sort" in t || Object.assign(t, { sort: "" }), t))
114
+ ], T(l);
115
115
  };
116
- T();
117
- const M = (e) => Object.keys(e);
116
+ M();
117
+ const U = (l) => Object.keys(l);
118
118
  return le(() => {
119
- var e;
120
- T(!0), (e = o.itemsExpanded) != null && e.length && o.itemsExpanded.forEach((t) => {
121
- k.value.items[t] && D(k.value.items[t], !0);
119
+ var l;
120
+ M(!0), (l = o.itemsExpanded) != null && l.length && o.itemsExpanded.forEach((t) => {
121
+ f.value.items[t] && A(f.value.items[t], !0);
122
122
  });
123
123
  }), te(() => o.isMobileDevice, () => {
124
- _.value = [...k.value.items].map((e) => ({
125
- ...e,
124
+ _.value = [...f.value.items].map((l) => ({
125
+ ...l,
126
126
  visible: !1
127
127
  }));
128
128
  }), j({
129
- clearVisibleDetails: H
129
+ clearVisibleDetails: T
130
130
  }), se(() => {
131
- var e;
132
- F.value = (e = S == null ? void 0 : S.vnode) == null ? void 0 : e.scopeId;
133
- }), (e, t) => (c(), n("div", {
131
+ var l;
132
+ F.value = (l = S == null ? void 0 : S.vnode) == null ? void 0 : l.scopeId;
133
+ }), (l, t) => (c(), n("div", {
134
134
  class: u(["table__container", G.value])
135
135
  }, [
136
136
  i("table", null, [
137
- e.hideHeaders ? b("", !0) : (c(), n("thead", de, [
137
+ k.hideHeaders ? b("", !0) : (c(), n("thead", de, [
138
138
  i("tr", null, [
139
- (c(!0), n(g, null, x($.value, (l, a) => (c(), n("th", {
139
+ (c(!0), n(h, null, E(m.value, (e, a) => (c(), n("th", {
140
140
  key: `header-${a}`,
141
- "data-header": `data-header-${l.key}`,
141
+ "data-header": `data-header-${e.key}`,
142
142
  class: u(["table__cell table__cell--heading body-1", [
143
- A(l),
143
+ V(e),
144
144
  {
145
- "table__cell--shadow": l.sticky,
146
- "table__cell--no-sticky": !l.sticky,
147
- "table__cell--sortable": l.sortable
145
+ "table__cell--shadow": e.sticky,
146
+ "table__cell--no-sticky": !e.sticky,
147
+ "table__cell--sortable": e.sortable
148
148
  }
149
149
  ]]),
150
- onClick: (s) => R(s, l)
150
+ onClick: (s) => R(s, e)
151
151
  }, [
152
- h(e.$slots, `header-${l.key}`, { item: l }, () => [
153
- l.type === "selectAll" ? (c(), n(g, { key: 0 }, [
154
- f(E, {
155
- id: `checkbox_${l.key}`,
156
- "is-checked": l.allSelected,
157
- "onUpdate:modelValue": l.callback
152
+ $(l.$slots, `header-${e.key}`, { item: e }, () => [
153
+ e.type === "selectAll" ? (c(), n(h, { key: 0 }, [
154
+ v(B, {
155
+ id: `checkbox_${e.key}`,
156
+ "is-checked": e.allSelected,
157
+ "onUpdate:modelValue": e.callback
158
158
  }, null, 8, ["id", "is-checked", "onUpdate:modelValue"]),
159
159
  i("label", {
160
- for: `checkbox_${l.key}`,
160
+ for: `checkbox_${e.key}`,
161
161
  class: "rds-checkbox__label"
162
162
  }, null, 8, ue)
163
163
  ], 64)) : (c(), n("div", be, [
164
164
  i("span", {
165
165
  style: ae({
166
- color: (l == null ? void 0 : l.sort) !== "" ? "#00ADC3" : ""
166
+ color: (e == null ? void 0 : e.sort) !== "" ? "#00ADC3" : ""
167
167
  }),
168
168
  class: "rds-title-02"
169
- }, U(l.text || ""), 5),
170
- l.sortable ? (c(), n("span", _e, [
169
+ }, O(e.text || ""), 5),
170
+ e.sortable ? (c(), n("span", _e, [
171
171
  i("span", {
172
- class: u(["table__sortable-icon--up sortable-icon", `${l.sort === "asc" ? "active" : ""}`])
172
+ class: u(["table__sortable-icon--up sortable-icon", `${e.sort === "asc" ? "active" : ""}`])
173
173
  }, "▲", 2),
174
174
  i("span", {
175
- class: u(["table__sortable-icon--down sortable-icon", `${l.sort === "desc" ? "active" : ""}`])
175
+ class: u(["table__sortable-icon--down sortable-icon", `${e.sort === "desc" ? "active" : ""}`])
176
176
  }, "▼", 2)
177
177
  ])) : b("", !0)
178
178
  ]))
179
179
  ], !0)
180
180
  ], 10, re))), 128)),
181
- C(d) && !e.hideSelectAll ? (c(), n("th", ke, [
182
- f(E, {
183
- id: `checkbox-all-${B.value}`,
181
+ C(d) && !k.hideSelectAll ? (c(), n("th", ke, [
182
+ v(B, {
183
+ id: `checkbox-all-${D.value}`,
184
184
  class: "rds-checkbox table__checkbox",
185
185
  "is-checked": o.checkedAll,
186
186
  "onUpdate:modelValue": Y
187
187
  }, null, 8, ["id", "is-checked"]),
188
188
  i("label", {
189
- for: `checkbox-all-${B.value}`,
189
+ for: `checkbox-all-${D.value}`,
190
190
  class: "rds-checkbox__label rds-checkbox__label--no-text"
191
- }, null, 8, pe)
191
+ }, null, 8, fe)
192
192
  ])) : b("", !0)
193
193
  ])
194
194
  ])),
195
195
  i("tbody", {
196
196
  class: u(J.value)
197
197
  }, [
198
- f(O, { name: "fade" }, {
199
- default: N(() => [
200
- e.loading ? (c(), n("div", fe, [
201
- f(ne, { name: "loading" })
198
+ v(N, { name: "fade" }, {
199
+ default: L(() => [
200
+ k.loading ? (c(), n("div", pe, [
201
+ v(ne, { name: "loading" })
202
202
  ])) : b("", !0)
203
203
  ]),
204
204
  _: 1
205
205
  }),
206
- y.value.length !== 0 ? (c(!0), n(g, { key: 0 }, x(y.value, (l, a) => (c(), n(g, {
206
+ g.value.length !== 0 ? (c(!0), n(h, { key: 0 }, E(g.value, (e, a) => (c(), n(h, {
207
207
  key: `row-${a}}`
208
208
  }, [
209
209
  i("tr", {
@@ -213,52 +213,52 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-hea
213
213
  },
214
214
  class: u(["table__group", [
215
215
  { "table__group--odd": a % 2 === 0 },
216
- { "table__group--is-open rds-background-grey": l.visible },
217
- { "table__group--expandible": l.expandible },
218
- l.$class || ""
216
+ { "table__group--is-open rds-background-grey": e.visible },
217
+ { "table__group--expandible": e.expandible },
218
+ e.$class || ""
219
219
  ]]),
220
- onClick: () => D(l)
220
+ onClick: () => A(e)
221
221
  }, [
222
- (c(!0), n(g, null, x($.value, (s, r) => (c(), n("td", {
222
+ (c(!0), n(h, null, E(m.value, (s, r) => (c(), n("td", {
223
223
  key: `column-${r}`,
224
224
  "column-key": r,
225
225
  "data-cell": `data-cell-${s.key}`,
226
226
  class: u(["table__cell rds-body-01", [
227
- A(s),
227
+ V(s),
228
228
  {
229
229
  "table__cell--shadow": s.sticky,
230
230
  "table__cell--no-sticky": !s.sticky,
231
- "table__cell--disabled": Z(l, s.key)
231
+ "table__cell--disabled": Z(e, s.key)
232
232
  },
233
- l[`$${s.key}_class`] || ""
233
+ e[`$${s.key}_class`] || ""
234
234
  ]])
235
235
  }, [
236
- h(e.$slots, `td-${s.key}`, {
237
- value: l[s.key],
238
- item: l
236
+ $(l.$slots, `td-${s.key}`, {
237
+ value: e[s.key],
238
+ item: e
239
239
  }, () => [
240
240
  i("span", {
241
- title: V(s.key, String(l[s.key] || ""), a)
242
- }, U(V(s.key, String(l[s.key] || ""), a)), 9, ge)
241
+ title: H(s.key, String(e[s.key] || ""), a)
242
+ }, O(H(s.key, String(e[s.key] || ""), a)), 9, ge)
243
243
  ], !0)
244
244
  ], 10, ye))), 128)),
245
245
  C(d) ? (c(), n("td", he, [
246
- h(e.$slots, "td-checkbox", { item: l }, () => [
247
- f(E, {
248
- id: `add-${a}-${l[C(d)]}`,
246
+ $(l.$slots, "td-checkbox", { item: e }, () => [
247
+ v(B, {
248
+ id: `add-${a}-${e[C(d)]}`,
249
249
  name: "checkbox-item",
250
- "is-checked": W(l) || o.checkedAll,
250
+ "is-checked": W(e) || o.checkedAll,
251
251
  disabled: !1,
252
- "onUpdate:modelValue": (s) => X(l)
252
+ "onUpdate:modelValue": (s) => X(e)
253
253
  }, null, 8, ["id", "is-checked", "onUpdate:modelValue"]),
254
254
  i("label", {
255
- for: `add-${a}-${l[C(d)]}`,
255
+ for: `add-${a}-${e[C(d)]}`,
256
256
  class: "rds-checkbox__label rds-checkbox__label--no-text"
257
257
  }, null, 8, $e)
258
258
  ], !0)
259
259
  ])) : b("", !0)
260
260
  ], 10, ve),
261
- y.value[a].visible ? (c(), n("tr", {
261
+ g.value[a].visible ? (c(), n("tr", {
262
262
  key: 0,
263
263
  class: u(["table__group table__group--dropdown", [
264
264
  {
@@ -268,25 +268,25 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-hea
268
268
  }, [
269
269
  i("td", {
270
270
  class: u(["table__cell table__group--dropdown rds-background-grey", {
271
- "table__group--dropdown-disabled": l.status !== "ACTIVE",
272
- "table__cell--table": !l.expandible
271
+ "table__group--dropdown-disabled": e.status !== "ACTIVE",
272
+ "table__cell--table": !e.expandible
273
273
  }]),
274
- colspan: M(l).length
274
+ colspan: U(e).length
275
275
  }, [
276
- h(e.$slots, "expandible", { item: l }, void 0, !0)
276
+ $(l.$slots, "expandible", { item: e }, void 0, !0)
277
277
  ], 10, me)
278
278
  ], 2)) : b("", !0),
279
- y.value[a].visible ? (c(), n("tr", {
279
+ g.value[a].visible ? (c(), n("tr", {
280
280
  key: 1,
281
281
  class: "table__group--spacer",
282
- colspan: M(l).length
283
- }, null, 8, Ce)) : b("", !0)
282
+ colspan: U(e).length
283
+ }, null, 8, xe)) : b("", !0)
284
284
  ], 64))), 128)) : b("", !0)
285
285
  ], 2)
286
286
  ]),
287
- f(O, { name: "fade" }, {
288
- default: N(() => [
289
- e.showEmptyState && !e.loading && y.value.length === 0 ? h(e.$slots, "empty", { key: 0 }, () => [
287
+ v(N, { name: "fade" }, {
288
+ default: L(() => [
289
+ k.showEmptyState && !k.loading && g.value.length === 0 ? $(l.$slots, "empty", { key: 0 }, () => [
290
290
  t[0] || (t[0] = i("div", { class: "table__empty-state" }, [
291
291
  i("h3", { class: "rds-title-02" }, " No hay elementos a mostrar. ")
292
292
  ], -1))
@@ -296,7 +296,7 @@ import './style/tableslotedcomponent.css';const de = { key: 0 }, re = ["data-hea
296
296
  })
297
297
  ], 2));
298
298
  }
299
- }), Ve = /* @__PURE__ */ ie(Se, [["__scopeId", "data-v-d17d793d"]]);
299
+ }), Ve = /* @__PURE__ */ ie(Ce, [["__scopeId", "data-v-d17d793d"]]);
300
300
  export {
301
301
  Ve as default
302
302
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, toRefs as x, computed as c, createElementBlock as _, openBlock as n, normalizeClass as o, createBlock as v, createCommentVNode as u, unref as t, toDisplayString as k } from "vue";
2
- import { R as g } from "./icon-svg-C8XeOnqu.js";
2
+ import { R as g } from "./icon-svg-K8-vLJgV.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/tag.css';const I = ["id"], R = /* @__PURE__ */ S({
5
5
  __name: "tag",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Q, mergeModels as W, useModel as X, toRefs as Y, ref as k, computed as s, createElementBlock as f, openBlock as o, normalizeClass as u, createElementVNode as r, withDirectives as Z, unref as e, vModelText as ee, renderSlot as S, createTextVNode as te, createBlock as z, createCommentVNode as i, mergeProps as F, toHandlers as T, toDisplayString as _ } from "vue";
2
- import { R as A } from "./icon-svg-C8XeOnqu.js";
2
+ import { R as A } from "./icon-svg-K8-vLJgV.js";
3
3
  import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/textArea.css';function V(t, p = !0, d = !0) {
5
5
  return p && !t.trim() ? (console.warn("Advertencia: El valor no puede estar vacío"), !1) : d && !/^[\w\s\u00C0-\u017F\-:.,;()¿?¡!%"'$€]+$/.test(t) ? (console.warn("Advertencia: El valor contiene caracteres inválidos"), !1) : !0;