energy-components 1.23.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 (81) 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 +82 -85
  25. package/dist/components/modal.es.js +20 -20
  26. package/dist/components/multiselect.es.js +54 -55
  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 +8931 -24801
  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/navigation/link/link.vue.d.ts +5 -8
  74. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
  75. package/dist/types/src/helpers/functions.d.ts +1 -0
  76. package/dist/types/style.d.ts +1 -0
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +24 -17
  79. package/dist/components/functions-DIHwdgF0.js +0 -18
  80. package/dist/components/icon-svg-K8-vLJgV.js +0 -16718
  81. package/dist/composables/index.es.js +0 -37
@@ -1,22 +1,21 @@
1
- import { defineComponent as D, computed as n, createBlock as l, openBlock as i, resolveDynamicComponent as z, mergeProps as s, withCtx as N, createCommentVNode as o, createElementBlock as g, normalizeClass as d, renderSlot as v, createTextVNode as w, toDisplayString as b, normalizeStyle as j } from "vue";
2
- import { R as c } from "./icon-svg-K8-vLJgV.js";
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";
3
4
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/link.css';const R = /* @__PURE__ */ D({
5
+ import './style/link.css';const F = /* @__PURE__ */ $({
5
6
  __name: "link",
6
7
  props: {
7
8
  /**
8
9
  * <span>Texto a mostrar en el link</span>
9
10
  */
10
11
  text: {
11
- type: String,
12
- default: void 0
12
+ type: String
13
13
  },
14
14
  /**
15
- * <span>Url a la que redirige el link. Acepta string o Location object</span>
15
+ * <span>Url a la que redirige el link</span>
16
16
  */
17
17
  to: {
18
- type: [String, Object],
19
- // Corregido: Permite objetos de ruta sin lanzar warning
18
+ type: String,
20
19
  default: ""
21
20
  },
22
21
  /**
@@ -25,7 +24,7 @@ import './style/link.css';const R = /* @__PURE__ */ D({
25
24
  icon: {
26
25
  type: Object,
27
26
  default: () => ({ name: "", modifier: "" }),
28
- validator: (r) => typeof r.name == "string" && (r.modifier === void 0 || typeof r.modifier == "string") ? !0 : (console.error("El icono debe tener una propiedad name de tipo string y una propiedad modifier opcional de tipo string"), !1)
27
+ validator: (o) => typeof o.name == "string" && (o.modifier === void 0 || typeof o.modifier == "string") ? !0 : (console.error("El icono debe tener una propiedad name de tipo string y una propiedad modifier opcional de tipo string"), !1)
29
28
  },
30
29
  /**
31
30
  * <span>Tag del link</span>
@@ -99,94 +98,92 @@ import './style/link.css';const R = /* @__PURE__ */ D({
99
98
  }
100
99
  },
101
100
  emits: ["click"],
102
- setup(r, { emit: u }) {
103
- const e = r, h = u, x = (t) => {
104
- if (e.disabled) {
105
- t.preventDefault(), t.stopPropagation();
106
- return;
107
- }
108
- h("click", t);
109
- }, S = n(() => e.disabled ? "span" : e.tag === "a" ? "a" : e.tag), C = n(() => {
110
- const t = {};
111
- return e.disabled ? (t.role = "link", t["aria-disabled"] = !0, t) : (e.tag === "router-link" ? t.to = e.to : t.href = typeof e.to == "string" ? e.to : void 0, t);
112
- }), B = n(() => e.color ? { color: e.color } : void 0), I = n(() => {
113
- var a;
114
- const t = ((a = e.icon) == null ? void 0 : a.name) === "arrow";
115
- return {
116
- "rds-e-link": !0,
117
- "rds-e-link--inverse": e.inverse,
118
- "rds-e-link--underline": e.underline,
119
- "rds-e-style-state-disabled": e.disabled,
120
- "rds-e-arrow-link": !t,
121
- "rds-e-arrow-link__icon--inverse": !t && e.inverse,
122
- "rds-e-link__breadcrumbs": e.customClass === "rds-e-breadcrumbs__link--text"
123
- };
124
- }), m = n(() => {
125
- var k, y;
126
- const t = ["rds-e-arrow-link__icon--arrow"], a = !!((k = e.icon) != null && k.name), p = ((y = e.icon) == null ? void 0 : y.name) !== "arrow";
127
- return a && (t.push("rds-e-arrow-link__icon"), e.disabled && t.push("rds-e-arrow-link__icon--disabled")), p && e.inverse && t.push("rds-e-arrow-link__icon--inverse"), t.push(e.right ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"), t.join(" ");
128
- }), f = n(() => {
129
- var t;
130
- return e.arrow || !!((t = e.icon) != null && t.name);
131
- });
132
- return (t, a) => (i(), l(z(S.value), s({
133
- id: r.id,
134
- class: I.value
135
- }, C.value, {
136
- style: B.value,
137
- tabindex: r.disabled ? -1 : void 0,
138
- "aria-disabled": r.disabled,
139
- onClick: x
140
- }), {
141
- default: N(() => [
142
- r.icon.name && !r.right && !r.arrow ? (i(), l(c, s({
101
+ setup(o, { emit: v }) {
102
+ const D = o, E = v, {
103
+ text: y,
104
+ to: w,
105
+ icon: a,
106
+ tag: u,
107
+ disabled: i,
108
+ inverse: m,
109
+ arrow: c,
110
+ right: n,
111
+ underline: g,
112
+ customClass: h,
113
+ color: l,
114
+ arrowSmall: b,
115
+ id: L
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(
122
+ n.value ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left"
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"), {
126
+ id: e(L),
127
+ class: p(T.value),
128
+ to: e(u) === "router-link" ? e(w) : null,
129
+ href: e(u) === "a" ? R.value : null,
130
+ disable: e(i),
131
+ style: P(N.value),
132
+ tabindex: e(i) ? -1 : void 0,
133
+ "aria-disabled": e(i),
134
+ onClick: C[0] || (C[0] = (V) => E("click", V))
135
+ }, {
136
+ default: U(() => [
137
+ e(a).name && !e(n) && !e(c) ? (t(), f(k, _({
143
138
  key: 0,
144
- name: r.icon.name
145
- }, { ...r.icon }, {
146
- class: ["rds-e-link__icon-left", m.value],
147
- style: e.color ? { color: e.color } : void 0
148
- }), null, 16, ["name", "class", "style"])) : o("", !0),
149
- r.right ? (i(), g("span", {
139
+ name: e(a).name
140
+ }, {
141
+ ...e(a)
142
+ }, {
143
+ class: ["rds-e-link__icon-left", x.value],
144
+ style: e(l) ? { color: e(l) } : void 0
145
+ }), null, 16, ["name", "class", "style"])) : d("", !0),
146
+ e(n) ? (t(), B("span", {
150
147
  key: 1,
151
- class: d(["rds-e-link__text", [r.customClass, {
152
- "rds-e-mr-xs": f.value,
153
- "rds-e-link__text--underline": r.underline
148
+ class: p(["rds-e-link__text", [e(h), {
149
+ "rds-e-mr-xs": S.value,
150
+ "rds-e-link__text--underline": e(g)
154
151
  }]])
155
152
  }, [
156
- v(t.$slots, "default", {}, () => [
157
- w(b(r.text), 1)
153
+ I(r.$slots, "default", {}, () => [
154
+ z(j(e(y)), 1)
158
155
  ], !0)
159
- ], 2)) : o("", !0),
160
- r.arrow ? (i(), l(c, {
161
- key: 2,
162
- name: r.right ? "arrow_right" : "arrow_left",
163
- size: r.arrowSmall ? 16 : void 0,
164
- class: d(["rds-e-arrow-link__icon--arrow", [
165
- r.right ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left",
166
- { "rds-flex rds-flex-center-center": r.arrowSmall }
167
- ]]),
168
- style: j(e.color ? { color: e.color } : void 0)
169
- }, null, 8, ["name", "size", "class", "style"])) : o("", !0),
170
- r.right ? o("", !0) : (i(), g("span", {
156
+ ], 2)) : d("", !0),
157
+ e(c) ? (t(), f(k, _({ key: 2 }, {
158
+ name: e(n) ? "arrow_right" : "arrow_left",
159
+ size: e(b) ? 16 : void 0
160
+ }, {
161
+ class: ["rds-e-arrow-link__icon--arrow", [
162
+ e(n) ? "rds-e-arrow-link__icon--animation-right" : "rds-e-arrow-link__icon--animation-left",
163
+ { "rds-flex rds-flex-center-center": e(b) }
164
+ ]],
165
+ style: e(l) ? { color: e(l) } : void 0
166
+ }), null, 16, ["class", "style"])) : d("", !0),
167
+ e(n) ? d("", !0) : (t(), B("span", {
171
168
  key: 3,
172
- class: d(["rds-e-link__text", { "rds-e-ml-xs": f.value }])
169
+ class: p(["rds-e-link__text", { "rds-e-ml-xs": S.value }])
173
170
  }, [
174
- v(t.$slots, "default", {}, () => [
175
- w(b(r.text), 1)
171
+ I(r.$slots, "default", {}, () => [
172
+ z(j(e(y)), 1)
176
173
  ], !0)
177
174
  ], 2)),
178
- r.icon.name && r.right && !r.arrow ? (i(), l(c, s({
175
+ e(a).name && e(n) && !e(c) ? (t(), f(k, _({
179
176
  key: 4,
180
- name: r.icon.name
181
- }, r.icon, {
182
- class: ["rds-e-link__icon-right", m.value],
183
- style: e.color ? { color: e.color } : void 0
184
- }), null, 16, ["name", "class", "style"])) : o("", !0)
177
+ name: e(a).name
178
+ }, e(a), {
179
+ class: ["rds-e-link__icon-right", x.value],
180
+ style: e(l) ? { color: e(l) } : void 0
181
+ }), null, 16, ["name", "class", "style"])) : d("", !0)
185
182
  ]),
186
183
  _: 3
187
- }, 16, ["id", "class", "style", "tabindex", "aria-disabled"]));
184
+ }, 8, ["id", "class", "to", "href", "disable", "style", "tabindex", "aria-disabled"]));
188
185
  }
189
- }), T = /* @__PURE__ */ A(R, [["__scopeId", "data-v-31849beb"]]);
186
+ }), Q = /* @__PURE__ */ A(F, [["__scopeId", "data-v-794c0d15"]]);
190
187
  export {
191
- T as default
188
+ Q as default
192
189
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as z, ref as m, onMounted as N, onBeforeUnmount as W, watch as D, computed as _, createBlock as R, createCommentVNode as f, openBlock as d, unref as c, withCtx as C, createVNode as E, withModifiers as F, normalizeStyle as T, createElementVNode as v, normalizeClass as S, createElementBlock as h, renderSlot as p } from "vue";
2
- import V from "./overlay.es.js";
1
+ import { defineComponent as z, ref as m, onMounted as N, onBeforeUnmount as W, watch as E, computed as _, createBlock as C, createCommentVNode as f, openBlock as d, unref as c, withCtx as R, createVNode as F, withModifiers as T, normalizeStyle as V, createElementVNode as v, normalizeClass as k, createElementBlock as h, renderSlot as p } from "vue";
2
+ import I from "./overlay.es.js";
3
3
  import L from "./card.es.js";
4
- import { R as A } from "./icon-svg-K8-vLJgV.js";
5
- import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { I as A } from "./icon-svg-DxlNo61Q.js";
5
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { class: "rds-e-modal__header-text" }, G = {
7
7
  key: 1,
8
8
  class: "rds-e-modal__spacer"
@@ -73,8 +73,8 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
73
73
  }
74
74
  },
75
75
  emits: ["onCloseRequest", "onOpenRequest", "onToggleRequest"],
76
- setup(o, { expose: k, emit: O }) {
77
- const t = o, s = O, q = m(null), r = m(null), $ = m(null), u = m(!1);
76
+ setup(o, { expose: S, emit: O }) {
77
+ const t = o, s = O, $ = m(null), r = m(null), q = m(null), u = m(!1);
78
78
  let i = null, a = null;
79
79
  const n = () => {
80
80
  const e = r.value;
@@ -103,7 +103,7 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
103
103
  t.open && y();
104
104
  }), W(() => {
105
105
  b();
106
- }), D(() => t.open, (e) => {
106
+ }), E(() => t.open, (e) => {
107
107
  e ? y() : b();
108
108
  });
109
109
  const x = _(() => t.mobileHeight < 30 ? "30vh" : t.mobileHeight > 90 ? "90vh" : `${t.mobileHeight}vh`), B = _(() => {
@@ -112,7 +112,7 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
112
112
  }), g = () => {
113
113
  t.preventClose || s("onCloseRequest");
114
114
  };
115
- return k({
115
+ return S({
116
116
  /**
117
117
  * { () => void } Gestiona el clic fuera del modal.
118
118
  */
@@ -142,32 +142,32 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
142
142
  toggleModal: () => {
143
143
  s("onToggleRequest");
144
144
  }
145
- }), (e, l) => o.open ? (d(), R(c(V), {
145
+ }), (e, l) => o.open ? (d(), C(c(I), {
146
146
  key: 0,
147
147
  id: o.id,
148
148
  ref_key: "overlay",
149
- ref: q,
149
+ ref: $,
150
150
  class: "rds-e-modal__overlay",
151
151
  teleport: t.teleport,
152
152
  onClick: g
153
153
  }, {
154
- default: C(() => [
155
- E(c(L), {
154
+ default: R(() => [
155
+ F(c(L), {
156
156
  id: o.id ? `${o.id}-card` : void 0,
157
157
  class: "rds-e-modal__card",
158
- style: T(B.value),
159
- onClick: l[1] || (l[1] = F(() => {
158
+ style: V(B.value),
159
+ onClick: l[1] || (l[1] = T(() => {
160
160
  }, ["stop"]))
161
161
  }, {
162
- default: C(() => [
162
+ default: R(() => [
163
163
  v("div", {
164
- class: S(["rds-e-modal__container", { "rds-e-modal__container--no-footer": !e.$slots.footer }])
164
+ class: k(["rds-e-modal__container", { "rds-e-modal__container--no-footer": !e.$slots.footer }])
165
165
  }, [
166
166
  v("div", U, [
167
167
  v("div", j, [
168
168
  p(e.$slots, "header", {}, void 0, !0)
169
169
  ]),
170
- t.showClose ? (d(), R(c(A), {
170
+ t.showClose ? (d(), C(c(A), {
171
171
  key: 0,
172
172
  class: "rds-e-modal__header-close",
173
173
  name: "close",
@@ -187,8 +187,8 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
187
187
  e.$slots.footer ? (d(), h("div", {
188
188
  key: 2,
189
189
  ref_key: "footerRef",
190
- ref: $,
191
- class: S(["rds-e-modal__footer", { "rds-e-modal__footer--has-shadow": u.value }])
190
+ ref: q,
191
+ class: k(["rds-e-modal__footer", { "rds-e-modal__footer--has-shadow": u.value }])
192
192
  }, [
193
193
  p(e.$slots, "footer", {}, void 0, !0)
194
194
  ], 2)) : f("", !0)
@@ -200,7 +200,7 @@ import './style/modal.css';const U = { class: "rds-e-modal__header" }, j = { cla
200
200
  _: 3
201
201
  }, 8, ["id", "teleport"])) : f("", !0);
202
202
  }
203
- }), Z = /* @__PURE__ */ I(J, [["__scopeId", "data-v-5521fdf1"]]);
203
+ }), Z = /* @__PURE__ */ D(J, [["__scopeId", "data-v-5521fdf1"]]);
204
204
  export {
205
205
  Z as default
206
206
  };
@@ -11,7 +11,7 @@ function M(e, t) {
11
11
  return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
12
12
  }
13
13
  function E(e, t, i, r) {
14
- return t ? e.filter((n) => M(r(n, i), t)).sort((n, l) => r(n, i).length - r(l, i).length) : e;
14
+ return t ? e.filter((n) => M(r(n, i), t)).sort((n, s) => r(n, i).length - r(s, i).length) : e;
15
15
  }
16
16
  function z(e) {
17
17
  return e.filter((t) => !t.$isLabel);
@@ -23,13 +23,13 @@ function V(e, t) {
23
23
  }), r.concat(n[e])) : r, []);
24
24
  }
25
25
  function j(e, t, i, r, n) {
26
- return (l) => l.map((d) => {
26
+ return (s) => s.map((d) => {
27
27
  if (!d[i])
28
28
  return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."), [];
29
- const s = E(d[i], e, t, n);
30
- return s.length ? {
29
+ const l = E(d[i], e, t, n);
30
+ return l.length ? {
31
31
  [r]: d[r],
32
- [i]: s
32
+ [i]: l
33
33
  } : [];
34
34
  });
35
35
  }
@@ -420,7 +420,7 @@ const G = (...e) => (t) => e.reduce((i, r) => r(i), t), q = {
420
420
  this.$emit("tag", e.label, this.id), this.search = "", this.closeOnSelect && !this.multiple && this.deactivate();
421
421
  else {
422
422
  if (this.isSelected(e)) {
423
- this.multiple && t !== "Tab" ? this.removeElement(e) : !this.multiple && this.closeOnSelect && this.deactivate();
423
+ t !== "Tab" && this.removeElement(e);
424
424
  return;
425
425
  }
426
426
  this.multiple ? this.$emit("update:modelValue", this.internalValue.concat([e])) : this.$emit("update:modelValue", e), this.$emit("select", e, this.id), this.clearOnSelect && (this.search = "");
@@ -618,10 +618,9 @@ const G = (...e) => (t) => e.reduce((i, r) => r(i), t), q = {
618
618
  this.pointer > 0 ? (this.pointer--, this.$refs.list.scrollTop >= this.pointerPosition && (this.$refs.list.scrollTop = this.pointerPosition), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerBackward()) : this.filteredOptions[this.pointer] && this.filteredOptions[0].$isLabel && !this.groupSelect && this.pointerForward(), this.pointerDirty = !0;
619
619
  },
620
620
  pointerReset() {
621
- var e;
622
621
  if (this.closeOnSelect && (this.pointer = 0, this.$refs.list)) {
623
- const t = ((e = this.$refs.list.$refs) == null ? void 0 : e.wrapper) || this.$refs.list;
624
- t.scrollTop && (t.scrollTop = 0);
622
+ const e = this.$refs.list.$refs?.wrapper || this.$refs.list;
623
+ e.scrollTop && (e.scrollTop = 0);
625
624
  }
626
625
  },
627
626
  pointerAdjust() {
@@ -898,25 +897,25 @@ const G = (...e) => (t) => e.reduce((i, r) => r(i), t), q = {
898
897
  ref: "tags",
899
898
  class: "multiselect__tags"
900
899
  }, Q = { class: "multiselect__tags-wrap" }, X = ["textContent"], Y = ["onKeypress", "onMousedown"], Z = ["textContent"], _ = { class: "multiselect__spinner" }, ee = ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-controls"];
901
- function te(e, t, i, r, n, l) {
900
+ function te(e, t, i, r, n, s) {
902
901
  const d = H("MultiselectContentWrapper");
903
902
  return c(), g("div", {
904
903
  tabindex: e.searchable ? -1 : i.tabindex,
905
- class: P([{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above": l.isAbove, "multiselect--has-options-group": l.hasOptionGroup }, "multiselect"]),
906
- onFocus: t[11] || (t[11] = (s) => e.activate()),
907
- onBlur: t[12] || (t[12] = (...s) => l.onBlur && l.onBlur(...s)),
904
+ class: P([{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above": s.isAbove, "multiselect--has-options-group": s.hasOptionGroup }, "multiselect"]),
905
+ onFocus: t[11] || (t[11] = (l) => e.activate()),
906
+ onBlur: t[12] || (t[12] = (...l) => s.onBlur && s.onBlur(...l)),
908
907
  onKeydown: [
909
- t[13] || (t[13] = a(o((s) => e.pointerForward(), ["self", "prevent"]), ["down"])),
910
- t[14] || (t[14] = a(o((s) => e.pointerBackward(), ["self", "prevent"]), ["up"]))
908
+ t[13] || (t[13] = a(o((l) => e.pointerForward(), ["self", "prevent"]), ["down"])),
909
+ t[14] || (t[14] = a(o((l) => e.pointerBackward(), ["self", "prevent"]), ["up"]))
911
910
  ],
912
- onKeypress: t[15] || (t[15] = a(o((s) => e.addPointerElement(s), ["stop", "self"]), ["enter", "tab"])),
913
- onKeyup: t[16] || (t[16] = a((s) => e.deactivate(), ["esc"])),
911
+ onKeypress: t[15] || (t[15] = a(o((l) => e.addPointerElement(l), ["stop", "self"]), ["enter", "tab"])),
912
+ onKeyup: t[16] || (t[16] = a((l) => e.deactivate(), ["esc"])),
914
913
  role: "combobox",
915
914
  "aria-owns": "listbox-" + e.id
916
915
  }, [
917
916
  u(e.$slots, "caret", { toggle: e.toggle }, () => [
918
917
  p("div", {
919
- onMousedown: t[0] || (t[0] = o((s) => e.toggle(), ["prevent", "stop"])),
918
+ onMousedown: t[0] || (t[0] = o((l) => e.toggle(), ["prevent", "stop"])),
920
919
  class: "multiselect__select"
921
920
  }, null, 32)
922
921
  ], !0),
@@ -925,12 +924,12 @@ function te(e, t, i, r, n, l) {
925
924
  u(e.$slots, "selection", {
926
925
  search: e.search,
927
926
  remove: e.removeElement,
928
- values: l.visibleValues,
927
+ values: s.visibleValues,
929
928
  isOpen: e.isOpen
930
929
  }, () => [
931
930
  v(p("div", Q, [
932
- (c(!0), g(N, null, L(l.visibleValues, (s, h) => u(e.$slots, "tag", {
933
- option: s,
931
+ (c(!0), g(N, null, L(s.visibleValues, (l, h) => u(e.$slots, "tag", {
932
+ option: l,
934
933
  search: e.search,
935
934
  remove: e.removeElement
936
935
  }, () => [
@@ -939,18 +938,18 @@ function te(e, t, i, r, n, l) {
939
938
  key: h
940
939
  }, [
941
940
  p("span", {
942
- textContent: w(e.getOptionLabel(s))
941
+ textContent: w(e.getOptionLabel(l))
943
942
  }, null, 8, X),
944
943
  p("i", {
945
944
  tabindex: "1",
946
- onKeypress: a(o((f) => e.removeElement(s), ["prevent"]), ["enter"]),
947
- onMousedown: o((f) => e.removeElement(s), ["prevent"]),
945
+ onKeypress: a(o((f) => e.removeElement(l), ["prevent"]), ["enter"]),
946
+ onMousedown: o((f) => e.removeElement(l), ["prevent"]),
948
947
  class: "multiselect__tag-icon"
949
948
  }, null, 40, Y)
950
949
  ]))
951
950
  ], !0)), 256))
952
951
  ], 512), [
953
- [O, l.visibleValues.length > 0]
952
+ [O, s.visibleValues.length > 0]
954
953
  ]),
955
954
  e.internalValue && e.internalValue.length > i.limit ? u(e.$slots, "limit", { key: 0 }, () => [
956
955
  p("strong", {
@@ -980,30 +979,30 @@ function te(e, t, i, r, n, l) {
980
979
  placeholder: e.placeholder,
981
980
  required: i.required,
982
981
  style: C({
983
- ...l.inputStyle
982
+ ...s.inputStyle
984
983
  }),
985
984
  value: e.search,
986
985
  disabled: i.disabled,
987
986
  tabindex: i.tabindex,
988
- onInput: t[1] || (t[1] = (s) => e.updateSearch(s.target.value)),
989
- onFocus: t[2] || (t[2] = o((s) => e.activate(), ["prevent"])),
990
- onBlur: t[3] || (t[3] = o((s) => e.deactivate(), ["prevent"])),
991
- onKeyup: t[4] || (t[4] = a((s) => e.deactivate(), ["esc"])),
987
+ onInput: t[1] || (t[1] = (l) => e.updateSearch(l.target.value)),
988
+ onFocus: t[2] || (t[2] = o((l) => e.activate(), ["prevent"])),
989
+ onBlur: t[3] || (t[3] = o((l) => e.deactivate(), ["prevent"])),
990
+ onKeyup: t[4] || (t[4] = a((l) => e.deactivate(), ["esc"])),
992
991
  onKeydown: [
993
- t[5] || (t[5] = a(o((s) => e.pointerForward(), ["prevent"]), ["down"])),
994
- t[6] || (t[6] = a(o((s) => e.pointerBackward(), ["prevent"]), ["up"])),
995
- t[8] || (t[8] = a(o((s) => e.removeLastElement(), ["stop"]), ["delete"]))
992
+ t[5] || (t[5] = a(o((l) => e.pointerForward(), ["prevent"]), ["down"])),
993
+ t[6] || (t[6] = a(o((l) => e.pointerBackward(), ["prevent"]), ["up"])),
994
+ t[8] || (t[8] = a(o((l) => e.removeLastElement(), ["stop"]), ["delete"]))
996
995
  ],
997
- onKeypress: t[7] || (t[7] = a(o((s) => e.addPointerElement(s), ["prevent", "stop", "self"]), ["enter"])),
996
+ onKeypress: t[7] || (t[7] = a(o((l) => e.addPointerElement(l), ["prevent", "stop", "self"]), ["enter"])),
998
997
  class: "multiselect__input",
999
998
  "aria-controls": "listbox-" + e.id
1000
999
  }, null, 44, ee)) : b("", !0),
1001
- l.isSingleLabelVisible ? (c(), g("span", {
1000
+ s.isSingleLabelVisible ? (c(), g("span", {
1002
1001
  key: 1,
1003
1002
  class: "multiselect__single",
1004
- onMousedown: t[9] || (t[9] = o((...s) => e.toggle && e.toggle(...s), ["prevent"]))
1003
+ onMousedown: t[9] || (t[9] = o((...l) => e.toggle && e.toggle(...l), ["prevent"]))
1005
1004
  }, [
1006
- u(e.$slots, "singleLabel", { option: l.singleValue }, () => [
1005
+ u(e.$slots, "singleLabel", { option: s.singleValue }, () => [
1007
1006
  F(w(e.currentOptionLabel), 1)
1008
1007
  ], !0)
1009
1008
  ], 32)) : b("", !0)
@@ -1021,29 +1020,29 @@ function te(e, t, i, r, n, l) {
1021
1020
  optionHighlight: e.optionHighlight,
1022
1021
  select: e.select,
1023
1022
  pointerSet: e.pointerSet,
1024
- selectLabelText: l.selectLabelText,
1025
- selectedLabelText: l.selectedLabelText,
1026
- deselectLabelText: l.deselectLabelText,
1023
+ selectLabelText: s.selectLabelText,
1024
+ selectedLabelText: s.selectedLabelText,
1025
+ deselectLabelText: s.deselectLabelText,
1027
1026
  tagPlaceholder: e.tagPlaceholder,
1028
1027
  groupSelect: e.groupSelect,
1029
- selectGroupLabelText: l.selectGroupLabelText,
1030
- deselectGroupLabelText: l.deselectGroupLabelText,
1028
+ selectGroupLabelText: s.selectGroupLabelText,
1029
+ deselectGroupLabelText: s.deselectGroupLabelText,
1031
1030
  getOptionLabel: e.getOptionLabel,
1032
1031
  groupHighlight: e.groupHighlight,
1033
1032
  selectGroup: e.selectGroup,
1034
1033
  options: e.options,
1035
- hasOptionGroup: l.hasOptionGroup,
1034
+ hasOptionGroup: s.hasOptionGroup,
1036
1035
  search: e.search,
1037
1036
  loading: i.loading,
1038
1037
  showNoResults: i.showNoResults,
1039
1038
  showNoOptions: i.showNoOptions,
1040
1039
  small: i.small,
1041
- contentStyle: l.contentStyle,
1042
- customStyle: l.dropdownStyle,
1040
+ contentStyle: s.contentStyle,
1041
+ customStyle: s.dropdownStyle,
1043
1042
  ref: "list",
1044
1043
  onFocus: e.activate
1045
1044
  }, B({ _: 2 }, [
1046
- L(e.$slots, (s, h) => ({
1045
+ L(e.$slots, (l, h) => ({
1047
1046
  name: h,
1048
1047
  fn: y((f) => [
1049
1048
  u(e.$slots, h, $(D(f)), void 0, !0)
@@ -1070,30 +1069,30 @@ function te(e, t, i, r, n, l) {
1070
1069
  optionHighlight: e.optionHighlight,
1071
1070
  select: e.select,
1072
1071
  pointerSet: e.pointerSet,
1073
- selectLabelText: l.selectLabelText,
1074
- selectedLabelText: l.selectedLabelText,
1075
- deselectLabelText: l.deselectLabelText,
1072
+ selectLabelText: s.selectLabelText,
1073
+ selectedLabelText: s.selectedLabelText,
1074
+ deselectLabelText: s.deselectLabelText,
1076
1075
  tagPlaceholder: e.tagPlaceholder,
1077
1076
  groupSelect: e.groupSelect,
1078
- selectGroupLabelText: l.selectGroupLabelText,
1079
- deselectGroupLabelText: l.deselectGroupLabelText,
1077
+ selectGroupLabelText: s.selectGroupLabelText,
1078
+ deselectGroupLabelText: s.deselectGroupLabelText,
1080
1079
  getOptionLabel: e.getOptionLabel,
1081
1080
  groupHighlight: e.groupHighlight,
1082
1081
  selectGroup: e.selectGroup,
1083
1082
  options: e.options,
1084
- hasOptionGroup: l.hasOptionGroup,
1083
+ hasOptionGroup: s.hasOptionGroup,
1085
1084
  search: e.search,
1086
1085
  loading: i.loading,
1087
1086
  showNoResults: i.showNoResults,
1088
1087
  showNoOptions: i.showNoOptions,
1089
1088
  small: i.small,
1090
- contentStyle: l.contentStyle,
1091
- customStyle: l.teleportedContentStyle,
1089
+ contentStyle: s.contentStyle,
1090
+ customStyle: s.teleportedContentStyle,
1092
1091
  onFocus: e.activate,
1093
1092
  onClick: t[10] || (t[10] = o(() => {
1094
1093
  }, ["stop"]))
1095
1094
  }, B({ _: 2 }, [
1096
- L(e.$slots, (s, h) => ({
1095
+ L(e.$slots, (l, h) => ({
1097
1096
  name: h,
1098
1097
  fn: y((f) => [
1099
1098
  u(e.$slots, h, $(D(f)), void 0, !0)
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, createBlock as s, openBlock as a, Teleport as n, createElementVNode as o, mergeProps as l, renderSlot as i } from "vue";
2
- import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import './style/overlay.css';const p = ["id"], _ = { class: "rds-e-overlay__content" }, f = /* @__PURE__ */ d({
1
+ import { defineComponent as c, useAttrs as d, computed as l, createBlock as p, openBlock as u, Teleport as f, createElementVNode as s, mergeProps as _, renderSlot as m } from "vue";
2
+ import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import './style/overlay.css';const y = ["id"], h = { class: "rds-e-overlay__content" }, g = /* @__PURE__ */ c({
4
4
  __name: "overlay",
5
5
  props: {
6
6
  /**
@@ -20,22 +20,27 @@ import './style/overlay.css';const p = ["id"], _ = { class: "rds-e-overlay__cont
20
20
  default: void 0
21
21
  }
22
22
  },
23
- setup(e) {
24
- const r = e;
25
- return (t, u) => (a(), s(n, {
26
- to: r.teleport
23
+ setup(o) {
24
+ const a = o, n = d(), i = l(() => {
25
+ const t = {};
26
+ return Object.entries(n).forEach(([e, r]) => {
27
+ /^on[a-z]+/i.test(e) || typeof r == "string" && r.trim().toLowerCase().startsWith("javascript:") || (t[e] = r);
28
+ }), t;
29
+ });
30
+ return (t, e) => (u(), p(f, {
31
+ to: a.teleport
27
32
  }, [
28
- o("div", l({
29
- id: e.id,
33
+ s("div", _({
34
+ id: o.id,
30
35
  class: "rds-e-overlay"
31
- }, t.$attrs), [
32
- o("div", _, [
33
- i(t.$slots, "default", {}, void 0, !0)
36
+ }, i.value), [
37
+ s("div", h, [
38
+ m(t.$slots, "default", {}, void 0, !0)
34
39
  ])
35
- ], 16, p)
40
+ ], 16, y)
36
41
  ], 8, ["to"]));
37
42
  }
38
- }), y = /* @__PURE__ */ c(f, [["__scopeId", "data-v-f5f6d56b"]]);
43
+ }), j = /* @__PURE__ */ v(g, [["__scopeId", "data-v-e82b4703"]]);
39
44
  export {
40
- y as default
45
+ j as default
41
46
  };