energy-components 1.20.0-beta.0 → 1.20.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 (46) hide show
  1. package/dist/components/accordion.es.js +1 -1
  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-C2ohjDhp.js → collapsable.scss_vue_type_style_index_0_src_true_lang-6HkNT8L9.js} +1 -1
  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 +45 -34
  12. package/dist/components/filterChip.es.js +1 -1
  13. package/dist/components/filterTag.es.js +1 -1
  14. package/dist/components/{icon-svg-arye8CV8.js → icon-svg-C8XeOnqu.js} +805 -767
  15. package/dist/components/iconList.es.js +1 -1
  16. package/dist/components/iconSvg.es.js +1 -1
  17. package/dist/components/index.es.js +2 -2
  18. package/dist/components/infoBox.es.js +1 -1
  19. package/dist/components/link.es.js +1 -1
  20. package/dist/components/modal.es.js +1 -1
  21. package/dist/components/persistentToast.es.js +1 -1
  22. package/dist/components/popover.es.js +107 -74
  23. package/dist/components/popoverMenu.es.js +98 -75
  24. package/dist/components/progressBar.es.js +1 -1
  25. package/dist/components/quantitySelector.es.js +1 -1
  26. package/dist/components/radioButton.es.js +1 -1
  27. package/dist/components/selectionChip.es.js +1 -1
  28. package/dist/components/sidedrawer.es.js +1 -1
  29. package/dist/components/style/fileUploadItem.css +1 -1
  30. package/dist/components/style/popover.css +1 -1
  31. package/dist/components/style/popoverMenu.css +1 -1
  32. package/dist/components/switch.es.js +1 -1
  33. package/dist/components/tabBar.es.js +1 -1
  34. package/dist/components/tableslotedcomponent.es.js +1 -1
  35. package/dist/components/tag.es.js +1 -1
  36. package/dist/components/textArea.es.js +1 -1
  37. package/dist/components/textField.es.js +1 -1
  38. package/dist/components/tooltip.es.js +1 -1
  39. package/dist/energy-components.es.js +4570 -4465
  40. package/dist/energy-components.umd.js +2 -2
  41. package/dist/style.css +1 -1
  42. package/dist/types/src/components/input/file-upload-item/file-upload-item.vue.d.ts +17 -0
  43. package/dist/types/src/components/overlay/popover/popover.vue.d.ts +2 -0
  44. package/dist/types/src/components/overlay/popover-menu/popover-menu.vue.d.ts +3 -0
  45. package/dist/types/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as R, toRefs as B, ref as s, watch as D, nextTick as N, inject as v, onMounted as V, onBeforeUnmount as q, createElementBlock as w, openBlock as _, createElementVNode as n, toDisplayString as h, createBlock as H, createCommentVNode as P, createVNode as T, unref as d, mergeProps as j, normalizeClass as y, renderSlot as A, createTextVNode as E } from "vue";
2
- import { R as I } from "./icon-svg-arye8CV8.js";
2
+ import { R as I } from "./icon-svg-C8XeOnqu.js";
3
3
  import O from "./tag.es.js";
4
4
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/accordion.css';const b = ["id"], z = { class: "rds-e-accordion-title" }, M = { class: "rds-e-accordion-title_right" }, U = /* @__PURE__ */ R({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, computed as a, createElementBlock as s, openBlock as n, withKeys as o, normalizeStyle as u, normalizeClass as k, createBlock as _, createCommentVNode as b, toDisplayString as z } from "vue";
2
- import { R as C } from "./icon-svg-arye8CV8.js";
2
+ import { R as C } from "./icon-svg-C8XeOnqu.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/avatar.css';const A = ["id", "aria-label"], B = ["src", "alt"], D = {
5
5
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, toRefs as I, computed as r, createElementBlock as $, openBlock as b, normalizeClass as m, unref as n, createBlock as k, createCommentVNode as C, createElementVNode as N, renderSlot as R, createTextVNode as V, toDisplayString as D } from "vue";
2
- import { R as E } from "./icon-svg-arye8CV8.js";
2
+ import { R as E } from "./icon-svg-C8XeOnqu.js";
3
3
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/button.css';const w = ["id", "type", "disabled"], W = { class: "rds-e-btn__text" }, j = /* @__PURE__ */ x({
5
5
  __name: "button",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as r, ref as c, watch as _, onMounted as D, onBeforeUnmount as E, createElementBlock as L, openBlock as u, normalizeClass as d, createElementVNode as b, renderSlot as N, createTextVNode as R, createBlock as x, createCommentVNode as T, toDisplayString as q, withCtx as U, createVNode as z } from "vue";
2
- import { R as y } from "./icon-svg-arye8CV8.js";
2
+ import { R as y } from "./icon-svg-C8XeOnqu.js";
3
3
  import I from "./tooltip.es.js";
4
4
  import { g as F } from "./getInstance-GhoEcxLF.js";
5
5
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-C2ohjDhp.js";
1
+ import { _ as f } from "./collapsable.scss_vue_type_style_index_0_src_true_lang-6HkNT8L9.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, ref as d, computed as r, watch as f, nextTick as c, createElementBlock as B, openBlock as m, normalizeClass as i, createElementVNode as a, withKeys as C, createBlock as S, createCommentVNode as $, createVNode as I, toDisplayString as v, renderSlot as N, createTextVNode as V } from "vue";
2
- import { R as h } from "./icon-svg-arye8CV8.js";
2
+ import { R as h } from "./icon-svg-C8XeOnqu.js";
3
3
  import './style/collapsable.css';const H = ["id", "aria-expanded", "aria-controls", "disabled"], x = { class: "rds-e-collapsable__header-title" }, D = { class: "rds-e-collapsable__header-title-text" }, E = ["id", "aria-labelledby"], W = /* @__PURE__ */ w({
4
4
  __name: "collapsable",
5
5
  props: {
@@ -2,7 +2,7 @@ import './style/datepicker.css';var qr = Object.defineProperty;
2
2
  var jr = (e, n, t) => n in e ? qr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var ce = (e, n, t) => jr(e, typeof n != "symbol" ? n + "" : n, t);
4
4
  import { reactive as ga, ref as G, defineComponent as Ze, useSlots as Vt, toRef as ma, onMounted as et, nextTick as it, onUnmounted as wa, watch as vt, computed as Q, createElementBlock as X, openBlock as C, unref as s, normalizeClass as Me, createVNode as at, createBlock as Ae, mergeProps as Ue, isRef as On, createSlots as Je, renderList as Ne, withCtx as _e, renderSlot as se, normalizeProps as Ke, guardReactiveProps as ot, resolveDynamicComponent as Ya, Teleport as Qr, Transition as oa, createCommentVNode as K, h as Ur, render as Cn, createElementVNode as be, withModifiers as Zt, normalizeStyle as ft, Fragment as xe, toDisplayString as tt, useAttrs as Xr, createTextVNode as Ct, getCurrentScope as zr, onScopeDispose as Kr, onBeforeUpdate as Gr, withDirectives as Ta, vShow as Aa, withKeys as Jr, mergeModels as Yn, useModel as Zr, toRefs as el, toHandlers as tl } from "vue";
5
- import { R as al } from "./icon-svg-arye8CV8.js";
5
+ import { R as al } from "./icon-svg-C8XeOnqu.js";
6
6
  import Rn from "./button.es.js";
7
7
  import nl from "./textField.es.js";
8
8
  import { _ as rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, toRefs as E, computed as o, createBlock as d, openBlock as l, resolveDynamicComponent as I, unref as t, normalizeClass as N, withCtx as O, renderSlot as u, createElementVNode as m, createCommentVNode as b, createElementBlock as T, normalizeStyle as w, toDisplayString as V } from "vue";
2
- import { R as S } from "./icon-svg-arye8CV8.js";
2
+ import { R as S } from "./icon-svg-C8XeOnqu.js";
3
3
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/directAccess.css';const A = { class: "rds-e-direct-access__artwork-container" }, M = ["src", "alt", "aria-hidden"], F = { class: "rds-e-direct-access__text-container" }, G = { class: "rds-e-direct-access__text" }, H = /* @__PURE__ */ j({
5
5
  __name: "direct-access",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, ref as _, computed as c, createElementBlock as b, openBlock as x, withModifiers as f, normalizeClass as q, createElementVNode as u, renderSlot as L, createVNode as M, createCommentVNode as z, toDisplayString as D } from "vue";
2
2
  import { g as A } from "./getInstance-GhoEcxLF.js";
3
- import { R as U } from "./icon-svg-arye8CV8.js";
3
+ import { R as U } from "./icon-svg-C8XeOnqu.js";
4
4
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import './style/dragAndDrop.css';const O = ["id", "accept", "multiple", "disabled"], P = ["for"], j = { class: "rds-e-drag-and-drop__icon-wrapper" }, G = { class: "rds-e-drag-and-drop__text-container" }, H = { class: "rds-e-drag-and-drop__text" }, J = {
6
6
  key: 0,
@@ -3,7 +3,7 @@ import he from "./multiselect.es.js";
3
3
  import ke from "./checkbox.es.js";
4
4
  import { _ as $e } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
5
  import Ce from "./radioButton.es.js";
6
- import { R as Y } from "./icon-svg-arye8CV8.js";
6
+ import { R as Y } from "./icon-svg-C8XeOnqu.js";
7
7
  import Z from "./textField.es.js";
8
8
  import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__option" }, xe = { class: "rds-e-dropdown__option-container" }, Be = { class: "rds-e-dropdown__option--prepend" }, Ve = { class: "rds-e-dropdown__option--content" }, Ae = {
@@ -1,12 +1,15 @@
1
- import { defineComponent as M, ref as N, computed as c, createElementBlock as l, openBlock as o, normalizeClass as $, createElementVNode as r, renderSlot as v, createVNode as p, createCommentVNode as n, toDisplayString as m, withModifiers as I } from "vue";
2
- import { R as g } from "./icon-svg-arye8CV8.js";
3
- import z from "./progressBar.es.js";
4
- import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import './style/fileUploadItem.css';const R = ["id"], w = { class: "rds-e-file-upload-item__icon-container" }, E = { class: "rds-e-file-upload-item__details" }, F = { class: "rds-e-file-upload-item__info-wrapper" }, x = { class: "rds-e-file-upload-item__name" }, D = {
1
+ import { defineComponent as M, ref as z, computed as c, createElementBlock as s, openBlock as l, normalizeClass as N, createElementVNode as n, renderSlot as v, createVNode as p, createCommentVNode as r, toDisplayString as f, withModifiers as $ } from "vue";
2
+ import { R as g } from "./icon-svg-C8XeOnqu.js";
3
+ import w from "./progressBar.es.js";
4
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-upload-item__icon-container" }, R = { class: "rds-e-file-upload-item__details" }, E = { class: "rds-e-file-upload-item__info-wrapper" }, x = { class: "rds-e-file-upload-item__name" }, D = {
6
6
  key: 0,
7
7
  class: "rds-e-file-upload-item__meta"
8
- }, P = { class: "rds-e-file-upload-item__size" }, V = {
8
+ }, P = {
9
9
  key: 0,
10
+ class: "rds-e-file-upload-item__size"
11
+ }, V = {
12
+ key: 1,
10
13
  class: "rds-e-file-upload-item__time-remaining"
11
14
  }, q = {
12
15
  key: 1,
@@ -105,28 +108,36 @@ import './style/fileUploadItem.css';const R = ["id"], w = { class: "rds-e-file-u
105
108
  showProgressBar: {
106
109
  type: Boolean,
107
110
  default: !1
111
+ },
112
+ /**
113
+ * Indica si se debe mostrar el tamaño del archivo.
114
+ * Si es false, el tamaño no se muestra.
115
+ */
116
+ showFileSize: {
117
+ type: Boolean,
118
+ default: !0
108
119
  }
109
120
  },
110
121
  emits: ["action"],
111
- setup(e, { emit: _ }) {
112
- const s = e, b = _, f = N(!1), a = c(() => s.disabled ? "disabled" : s.status), y = c(() => {
122
+ setup(e, { emit: y }) {
123
+ const o = e, b = y, m = z(!1), a = c(() => o.disabled ? "disabled" : o.status), _ = c(() => {
113
124
  const t = [`rds-e-file-upload-item--${a.value}`];
114
- return f.value && a.value !== "disabled" && a.value !== "uploading" && a.value !== "error" && t.push("rds-e-file-upload-item--hover"), t;
115
- }), h = c(() => s.fileIcon), S = c(() => {
116
- const t = s.fileSize;
125
+ return m.value && a.value !== "disabled" && a.value !== "uploading" && a.value !== "error" && t.push("rds-e-file-upload-item--hover"), t;
126
+ }), h = c(() => o.fileIcon), S = c(() => {
127
+ const t = o.fileSize;
117
128
  if (t === 0) return "0 Bytes";
118
129
  const i = 1024, d = ["Bytes", "KB", "MB", "GB", "TB"], u = Math.floor(Math.log(t) / Math.log(i)), k = u === 1 ? 0 : u > 1 ? 1 : 0;
119
130
  return `${Number.parseFloat((t / i ** u).toFixed(k))} ${d[u]}`;
120
131
  }), B = (t) => {
121
- !s.disabled && t && b("action", { actionType: t.type, fileId: s.id });
132
+ !o.disabled && t && b("action", { actionType: t.type, fileId: o.id });
122
133
  };
123
- return (t, i) => (o(), l("div", {
134
+ return (t, i) => (l(), s("div", {
124
135
  id: e.id,
125
- class: $(["rds-e-file-upload-item rds-radius-inputs", [y.value]]),
126
- onMouseover: i[1] || (i[1] = (d) => f.value = !0),
127
- onMouseleave: i[2] || (i[2] = (d) => f.value = !1)
136
+ class: N(["rds-e-file-upload-item rds-radius-inputs", [_.value]]),
137
+ onMouseover: i[1] || (i[1] = (d) => m.value = !0),
138
+ onMouseleave: i[2] || (i[2] = (d) => m.value = !1)
128
139
  }, [
129
- r("div", w, [
140
+ n("div", F, [
130
141
  v(t.$slots, "file-icon", {}, () => [
131
142
  p(g, {
132
143
  name: h.value,
@@ -135,17 +146,17 @@ import './style/fileUploadItem.css';const R = ["id"], w = { class: "rds-e-file-u
135
146
  }, null, 8, ["name"])
136
147
  ], !0)
137
148
  ]),
138
- r("div", E, [
139
- r("div", F, [
140
- r("span", x, m(e.fileName), 1),
141
- a.value !== "error" ? (o(), l("div", D, [
142
- r("span", P, m(S.value), 1),
143
- a.value === "uploading" && e.timeRemaining ? (o(), l("span", V, m(e.timeRemaining), 1)) : n("", !0)
144
- ])) : n("", !0),
145
- a.value === "error" && e.errorMessage ? (o(), l("div", q, m(e.errorMessage), 1)) : n("", !0)
149
+ n("div", R, [
150
+ n("div", E, [
151
+ n("span", x, f(e.fileName), 1),
152
+ a.value !== "error" ? (l(), s("div", D, [
153
+ e.showFileSize ? (l(), s("span", P, f(S.value), 1)) : r("", !0),
154
+ a.value === "uploading" && e.timeRemaining ? (l(), s("span", V, f(e.timeRemaining), 1)) : r("", !0)
155
+ ])) : r("", !0),
156
+ a.value === "error" && e.errorMessage ? (l(), s("div", q, f(e.errorMessage), 1)) : r("", !0)
146
157
  ]),
147
- a.value === "uploading" && e.showProgressBar ? (o(), l("div", T, [
148
- p(z, {
158
+ a.value === "uploading" && e.showProgressBar ? (l(), s("div", T, [
159
+ p(w, {
149
160
  id: e.id,
150
161
  class: "rds-e-file-upload-item__progress-bar",
151
162
  step: e.progress,
@@ -156,29 +167,29 @@ import './style/fileUploadItem.css';const R = ["id"], w = { class: "rds-e-file-u
156
167
  "hide-counter": "",
157
168
  inverse: ""
158
169
  }, null, 8, ["id", "step"])
159
- ])) : n("", !0)
170
+ ])) : r("", !0)
160
171
  ]),
161
- r("div", j, [
172
+ n("div", j, [
162
173
  v(t.$slots, "action", {}, () => [
163
- e.action ? (o(), l("button", {
174
+ e.action ? (l(), s("button", {
164
175
  key: 0,
165
176
  type: "button",
166
177
  class: "rds-e-file-upload-item__action-button",
167
178
  "aria-label": e.action.label || "Eliminar archivo",
168
179
  disabled: e.disabled,
169
- onClick: i[0] || (i[0] = I((d) => B(e.action), ["stop"]))
180
+ onClick: i[0] || (i[0] = $((d) => B(e.action), ["stop"]))
170
181
  }, [
171
182
  p(g, {
172
183
  name: e.action.icon,
173
184
  class: "rds-e-file-upload-item__action-icon",
174
185
  "aria-hidden": "true"
175
186
  }, null, 8, ["name"])
176
- ], 8, A)) : n("", !0)
187
+ ], 8, A)) : r("", !0)
177
188
  ], !0)
178
189
  ])
179
- ], 42, R));
190
+ ], 42, C));
180
191
  }
181
- }), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-acd37774"]]);
192
+ }), J = /* @__PURE__ */ I(G, [["__scopeId", "data-v-5ff636f4"]]);
182
193
  export {
183
194
  J as default
184
195
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as b, computed as s, createElementBlock as a, openBlock as l, normalizeClass as y, createCommentVNode as r, createElementVNode as k, createBlock as c, toDisplayString as n } from "vue";
2
- import { R as o } from "./icon-svg-arye8CV8.js";
2
+ import { R as o } from "./icon-svg-C8XeOnqu.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/filterChip.css';const _ = ["id", "disabled"], I = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as m, createElementBlock as b, openBlock as g, withKeys as s, normalizeClass as v, createElementVNode as x, createVNode as p, toDisplayString as y, withModifiers as l } from "vue";
2
- import { R as S } from "./icon-svg-arye8CV8.js";
2
+ import { R as S } from "./icon-svg-C8XeOnqu.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/filterTag.css';const w = ["id", "aria-disabled", "tabindex"], _ = { class: "rds-e-filter-tag__text" }, k = /* @__PURE__ */ u({
5
5
  __name: "filter-tag",