energy-components 1.22.0 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +21 -6
  2. package/dist/components/accordion.es.js +17 -17
  3. package/dist/components/avatar.es.js +7 -7
  4. package/dist/components/breadcrumbs.es.js +32 -32
  5. package/dist/components/button.es.js +24 -24
  6. package/dist/components/checkbox.es.js +14 -17
  7. package/dist/components/collapsable.es.js +1 -1
  8. package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-f-OHx-l3.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BERfoghR.js} +10 -10
  9. package/dist/components/datepicker.es.js +4644 -4639
  10. package/dist/components/directAccess.es.js +45 -50
  11. package/dist/components/dragAndDrop.es.js +44 -46
  12. package/dist/components/dropdown.es.js +154 -163
  13. package/dist/components/fileUploadItem.es.js +18 -18
  14. package/dist/components/filterChip.es.js +9 -9
  15. package/dist/components/filterTag.es.js +7 -7
  16. package/dist/components/{floating-ui.vue-DHEoOe5S.js → floating-ui.vue-C-DgKOwt.js} +1 -1
  17. package/dist/components/functions-D3GA3OzJ.js +24 -0
  18. package/dist/components/icon-svg-DxlNo61Q.js +869 -0
  19. package/dist/components/iconList.es.js +25 -29
  20. package/dist/components/iconSvg.es.js +1 -1
  21. package/dist/components/index.es.js +46 -46
  22. package/dist/components/indicator.es.js +27 -28
  23. package/dist/components/infoBox.es.js +17 -17
  24. package/dist/components/link.es.js +51 -55
  25. package/dist/components/modal.es.js +20 -20
  26. package/dist/components/multiselect.es.js +2 -3
  27. package/dist/components/overlay.es.js +20 -15
  28. package/dist/components/pagination.es.js +111 -111
  29. package/dist/components/persistentToast.es.js +11 -11
  30. package/dist/components/popover.es.js +18 -18
  31. package/dist/components/popoverMenu.es.js +22 -22
  32. package/dist/components/progressBar.es.js +8 -8
  33. package/dist/components/quantitySelector.es.js +12 -12
  34. package/dist/components/radioButton.es.js +26 -26
  35. package/dist/components/selectionChip.es.js +5 -5
  36. package/dist/components/sidedrawer.es.js +19 -19
  37. package/dist/components/style/accordionGroup.css +1 -1
  38. package/dist/components/style/actionButton.css +1 -1
  39. package/dist/components/style/button.css +1 -1
  40. package/dist/components/style/checkbox.css +1 -1
  41. package/dist/components/style/datepicker.css +1 -1
  42. package/dist/components/style/directAccess.css +1 -1
  43. package/dist/components/style/dragAndDrop.css +1 -1
  44. package/dist/components/style/filterChip.css +1 -1
  45. package/dist/components/style/icon-svg.css +1 -1
  46. package/dist/components/style/iconList.css +1 -1
  47. package/dist/components/style/link.css +1 -1
  48. package/dist/components/style/modal.css +1 -1
  49. package/dist/components/style/overlay.css +1 -1
  50. package/dist/components/style/pagination.css +1 -1
  51. package/dist/components/style/persistentToast.css +1 -1
  52. package/dist/components/style/selectionChip.css +1 -1
  53. package/dist/components/style/sidedrawer.css +1 -1
  54. package/dist/components/style/tabBar.css +1 -1
  55. package/dist/components/style/tableslotedcomponent.css +1 -1
  56. package/dist/components/switch.es.js +9 -9
  57. package/dist/components/tabBar.es.js +32 -33
  58. package/dist/components/tablepaginatedcomponent.es.js +35 -36
  59. package/dist/components/tableslotedcomponent.es.js +116 -121
  60. package/dist/components/tag.es.js +6 -6
  61. package/dist/components/textArea.es.js +103 -106
  62. package/dist/components/textField.es.js +21 -22
  63. package/dist/components/toggle.es.js +23 -23
  64. package/dist/components/tooltip.es.js +59 -59
  65. package/dist/energy-components.css +1 -0
  66. package/dist/energy-components.es.js +9101 -24972
  67. package/dist/energy-components.umd.js +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/types/src/components/icon-svg/icon-list.d.ts +8 -9
  70. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +2 -2
  71. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +2 -2
  72. package/dist/types/src/components/navigation/direct-access/direct-access.vue.d.ts +2 -2
  73. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +1 -1
  74. package/dist/types/src/helpers/functions.d.ts +1 -0
  75. package/dist/types/style.d.ts +1 -0
  76. package/dist/types/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +24 -17
  78. package/dist/components/functions-DIHwdgF0.js +0 -18
  79. package/dist/components/icon-svg-K8-vLJgV.js +0 -16718
  80. package/dist/composables/index.es.js +0 -37
@@ -1,15 +1,15 @@
1
- import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as D, computed as i, provide as _, onMounted as be, nextTick as F, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as a, createVNode as S, mergeProps as Q, withModifiers as r, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as O, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } from "vue";
1
+ import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as $, computed as i, provide as _, onMounted as be, nextTick as F, onBeforeUnmount as we, createElementBlock as b, openBlock as u, normalizeClass as R, unref as a, createVNode as C, mergeProps as Q, withModifiers as r, createSlots as X, withCtx as d, createElementVNode as p, createCommentVNode as D, createBlock as K, renderSlot as f, Fragment as ge, toDisplayString as T } from "vue";
2
2
  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-K8-vLJgV.js";
6
+ import { I as Y } from "./icon-svg-DxlNo61Q.js";
7
7
  import Z from "./textField.es.js";
8
8
  import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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 = {
9
+ import './style/dropdown.css';const Oe = ["id"], Se = { 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 = {
10
10
  key: 0,
11
11
  class: "rds-e-dropdown__option-detail"
12
- }, Re = { key: 1 }, Fe = {
12
+ }, Fe = { key: 1 }, Re = {
13
13
  key: 0,
14
14
  class: "rds-e-dropdown__option--append"
15
15
  }, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
@@ -75,7 +75,7 @@ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__
75
75
  showRadio: {
76
76
  type: Boolean,
77
77
  default: !1,
78
- validator: (o, L) => o && L.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
78
+ validator: (o, E) => o && E.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
79
79
  },
80
80
  /**
81
81
  * Indica si el campo de entrada contiene un error o no.
@@ -191,21 +191,18 @@ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__
191
191
  modelModifiers: {}
192
192
  }),
193
193
  emits: /* @__PURE__ */ J(["open", "close", "select", "change"], ["update:modelValue"]),
194
- setup(o, { expose: L, emit: ee }) {
195
- const s = o, k = ee, {
196
- disabled: x,
197
- limit: M,
198
- multiple: $,
199
- options: h,
200
- textOnly: j
201
- } = ve(s), n = ye(o, "modelValue"), p = D([]), m = D(), y = D(), I = D(""), q = D(!1);
202
- let B = !1;
203
- const le = () => {
204
- q.value = !0;
205
- }, te = i(() => {
206
- var e;
207
- return ((e = m.value) == null ? void 0 : e.isOpen) ?? !1;
208
- }), C = i(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), oe = i(() => ({
194
+ setup(o, { expose: E, emit: ee }) {
195
+ const s = o, g = ee, {
196
+ disabled: O,
197
+ limit: L,
198
+ multiple: h,
199
+ options: w,
200
+ textOnly: M
201
+ } = ve(s), n = ye(o, "modelValue"), c = $([]), m = $(), v = $(), j = $(""), I = $(!1);
202
+ let S = !1;
203
+ const te = () => {
204
+ I.value = !0;
205
+ }, le = i(() => m.value?.isOpen ?? !1), k = i(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), oe = i(() => ({
209
206
  id: s.autocomplete.id || `autocomplete-${s.id}`,
210
207
  label: s.autocomplete.label || s.label,
211
208
  icon: s.autocomplete.icon || "",
@@ -218,164 +215,161 @@ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__
218
215
  readonly: s.autocomplete.readonly ?? !1
219
216
  }));
220
217
  _("registerDropdownFocusElement", (e) => {
221
- e && !p.value.includes(e) && p.value.push(e);
218
+ e && !c.value.includes(e) && c.value.push(e);
222
219
  }), _("unregisterDropdownFocusElement", (e) => {
223
- const l = p.value.findIndex((t) => t === e);
224
- l > -1 && p.value.splice(l, 1);
220
+ const t = c.value.findIndex((l) => l === e);
221
+ t > -1 && c.value.splice(t, 1);
225
222
  }), _("isFocusWithinDropdown", (e) => {
226
- const l = p.value.some((f) => f === e || f.contains(e)), t = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
227
- return l || t;
223
+ const t = c.value.some((y) => y === e || y.contains(e)), l = e.classList && (e.classList.contains("rds-e-dropdown__before-list") || e.closest(".rds-e-dropdown__before-list") || e.classList.contains("multiselect") || e.closest(".multiselect"));
224
+ return t || l;
228
225
  });
229
226
  const H = i({
230
227
  get: () => n.value && typeof n.value == "object" && !Array.isArray(n.value) ? n.value.id : typeof n.value == "string" || typeof n.value == "number" ? n.value : null,
231
228
  set: (e) => {
232
- const l = h.value.find((t) => typeof t == "object" ? t.id === e : t === e);
233
- n.value = l || null;
229
+ const t = w.value.find((l) => typeof l == "object" ? l.id === e : l === e);
230
+ n.value = t || null;
234
231
  }
235
- }), se = i(() => (h.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), ne = i(() => !$.value || s.closeOnSelect), N = i({
236
- get: () => n.value ? s.multiple ? Array.isArray(n.value) ? n.value.length > M.value ? s.limitText(M.value) : n.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof n.value == "object" ? n.value.label : typeof n.value == "string" ? n.value : "" : "",
232
+ }), se = i(() => (w.value ?? []).every((e) => typeof e == "object" && e?.id && e?.label)), ne = i(() => !h.value || s.closeOnSelect), q = i({
233
+ get: () => n.value ? s.multiple ? Array.isArray(n.value) ? n.value.length > L.value ? s.limitText(L.value) : n.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof n.value == "object" ? n.value.label : typeof n.value == "string" ? n.value : "" : "",
237
234
  set: () => null
238
235
  }), re = i(() => ({
239
236
  "rds-e-dropdown-input": !0,
240
- "rds-e-dropdown--disabled": x.value,
237
+ "rds-e-dropdown--disabled": O.value,
241
238
  "rds-e-dropdown--small": s.small
242
- })), ae = i(() => s.openDirection !== "auto" ? s.openDirection : ""), U = i(() => {
239
+ })), ae = i(() => s.openDirection !== "auto" ? s.openDirection : ""), N = i(() => {
243
240
  const e = {};
244
241
  return se.value && Object.assign(e, {
245
242
  "track-by": "id",
246
243
  label: "label"
247
244
  }), e;
248
- }), de = i(() => C.value && s.autocomplete.autocompleteFilter ? h.value.filter((e) => s.autocomplete.autocompleteFilter(e, I.value)) : h.value), V = (e) => {
245
+ }), de = i(() => k.value && s.autocomplete.autocompleteFilter ? w.value.filter((e) => s.autocomplete.autocompleteFilter(e, j.value)) : w.value), x = (e) => {
249
246
  if (n.value === e) return !0;
250
247
  if (Array.isArray(n.value)) {
251
248
  if (typeof e == "string") return n.value.includes(e);
252
- if (U.value.label)
253
- return n.value.some((l) => l.id === e.id);
249
+ if (N.value.label)
250
+ return n.value.some((t) => t.id === e.id);
254
251
  }
255
252
  return !1;
256
253
  }, ie = (e) => {
257
- k("open", e, s.id);
254
+ g("open", e, s.id);
258
255
  }, ue = (e) => {
259
- k("close", e, s.id);
260
- }, ce = (e) => {
256
+ g("close", e, s.id);
257
+ }, pe = (e) => {
261
258
  F(() => {
262
- k("select", e);
259
+ g("select", e);
263
260
  });
264
- }, pe = () => {
261
+ }, ce = () => {
265
262
  F(() => {
266
- if ($.value) {
267
- const e = h.value.filter(
268
- (l) => V(l)
263
+ if (h.value) {
264
+ const e = w.value.filter(
265
+ (t) => x(t)
269
266
  ) || [];
270
- k("change", e);
267
+ g("change", e);
271
268
  } else {
272
- const e = h.value.find(
273
- (l) => V(l)
269
+ const e = w.value.find(
270
+ (t) => x(t)
274
271
  );
275
- k("change", [e]);
272
+ g("change", [e]);
276
273
  }
277
274
  });
278
275
  }, P = (e) => {
279
- m.value.select(e), B = !0;
280
- }, A = () => {
276
+ m.value.select(e), S = !0;
277
+ }, B = () => {
281
278
  m.value.activate();
282
- }, R = () => {
279
+ }, V = () => {
283
280
  m.value.deactivate();
284
281
  }, W = () => {
285
- m.value.toggle(), B = !0;
282
+ m.value.toggle(), S = !0;
286
283
  }, z = () => {
287
- te.value ? R() : A();
284
+ le.value ? V() : B();
288
285
  }, me = () => {
289
- C.value && y.value && (le(), A(), F(() => {
290
- y.value.focus();
286
+ k.value && v.value && (te(), B(), F(() => {
287
+ v.value.focus();
291
288
  }));
292
289
  }, G = (e) => {
293
- var f, g;
294
- if (B) {
295
- B = !1;
290
+ if (S) {
291
+ S = !1;
296
292
  return;
297
293
  }
298
- const l = e.target, t = !((g = (f = m.value) == null ? void 0 : f.$el) != null && g.contains(l));
299
- if (q.value) {
300
- const b = y.value && !y.value.$el.contains(l) && !l.closest(".rds-e-dropdown__before-list");
301
- t && b && (q.value = !1, R());
302
- } else t && R();
294
+ const t = e.target, l = !m.value?.$el?.contains(t);
295
+ if (I.value) {
296
+ const y = v.value && !v.value.$el.contains(t) && !t.closest(".rds-e-dropdown__before-list");
297
+ l && y && (I.value = !1, V());
298
+ } else l && V();
303
299
  };
304
300
  return be(() => {
305
- var e;
306
- (e = m.value) != null && e.$el && p.value.push(m.value.$el), F(() => {
307
- var l;
308
- if (C.value && ((l = y.value) != null && l.$el)) {
309
- p.value.push(y.value.$el);
310
- const t = y.value.$el.closest(".rds-e-dropdown__before-list");
311
- t && !p.value.includes(t) && p.value.push(t);
301
+ m.value?.$el && c.value.push(m.value.$el), F(() => {
302
+ if (k.value && v.value?.$el) {
303
+ c.value.push(v.value.$el);
304
+ const e = v.value.$el.closest(".rds-e-dropdown__before-list");
305
+ e && !c.value.includes(e) && c.value.push(e);
312
306
  }
313
307
  }), document.addEventListener("click", G);
314
308
  }), we(() => {
315
- p.value = [], document.removeEventListener("click", G);
316
- }), L({
309
+ c.value = [], document.removeEventListener("click", G);
310
+ }), E({
317
311
  /**
318
312
  * Abre el dropdown
319
313
  */
320
- activate: A,
314
+ activate: B,
321
315
  /**
322
316
  * Cierra el dropdown
323
317
  */
324
- deactivate: R
325
- }), (e, l) => (u(), w("div", {
326
- class: T(["rds-e-dropdown", {
327
- "rds-e-dropdown--text-only": a(j),
318
+ deactivate: V
319
+ }), (e, t) => (u(), b("div", {
320
+ class: R(["rds-e-dropdown", {
321
+ "rds-e-dropdown--text-only": a(M),
328
322
  "rds-e-dropdown--inverse": o.inverse
329
323
  }])
330
324
  }, [
331
- S(he, Q({
325
+ C(he, Q({
332
326
  ref_key: "multiselect",
333
327
  ref: m,
334
328
  modelValue: n.value,
335
- "onUpdate:modelValue": l[12] || (l[12] = (t) => n.value = t),
329
+ "onUpdate:modelValue": t[12] || (t[12] = (l) => n.value = l),
336
330
  class: re.value,
337
331
  options: de.value,
338
332
  "close-on-select": ne.value,
339
333
  "show-labels": !1,
340
- disabled: a(x),
341
- multiple: a($),
334
+ disabled: a(O),
335
+ multiple: a(h),
342
336
  "max-height": o.maxHeight,
343
337
  searchable: !1,
344
338
  small: o.small,
345
339
  "open-direction": ae.value,
346
- limit: a(M),
340
+ limit: a(L),
347
341
  "limit-text": o.limitText
348
- }, U.value, {
342
+ }, N.value, {
349
343
  "append-to-body": o.appendToBody,
350
- "text-only": a(j),
344
+ "text-only": a(M),
351
345
  onOpen: ie,
352
346
  onClose: ue,
353
- onSelect: ce,
354
- "onUpdate:modelValue": pe,
355
- onFocus: l[13] || (l[13] = r(() => A(), ["prevent"])),
347
+ onSelect: pe,
348
+ "onUpdate:modelValue": ce,
349
+ onFocus: t[13] || (t[13] = r(() => B(), ["prevent"])),
356
350
  onBlur: r(() => null, ["prevent"])
357
351
  }), X({
358
- selection: d(({ isOpen: t }) => [
359
- a(j) ? (u(), w("div", {
352
+ selection: d(({ isOpen: l }) => [
353
+ a(M) ? (u(), b("div", {
360
354
  key: 0,
361
355
  id: `multiselect-dropdown-${o.id}`,
362
- class: T([o.customTriggerClass, "rds-e-dropdown__text-only"]),
356
+ class: R([o.customTriggerClass, "rds-e-dropdown__text-only"]),
363
357
  onMousedown: r(z, ["prevent", "stop"])
364
358
  }, [
365
- c("span", null, E(N.value || o.label), 1),
366
- S(a(Y), {
359
+ p("span", null, T(q.value || o.label), 1),
360
+ C(a(Y), {
367
361
  name: "arrow_down",
368
362
  "aria-hidden": "true",
369
- class: T(["rds-e-dropdown__input-caret", {
370
- "rds-e-dropdown__input-caret--open": t
363
+ class: R(["rds-e-dropdown__input-caret", {
364
+ "rds-e-dropdown__input-caret--open": l
371
365
  }]),
372
366
  onMousedown: r(z, ["prevent", "stop"])
373
367
  }, null, 8, ["class"])
374
- ], 42, Se)) : (u(), K(a(Z), {
368
+ ], 42, Oe)) : (u(), K(a(Z), {
375
369
  key: 1,
376
370
  id: `multiselect-dropdown-${o.id}`,
377
- modelValue: N.value,
378
- "onUpdate:modelValue": l[0] || (l[0] = (f) => N.value = f),
371
+ modelValue: q.value,
372
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => q.value = y),
379
373
  class: "rds-e-dropdown__input",
380
374
  label: o.label,
381
375
  error: o.error,
@@ -386,11 +380,11 @@ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__
386
380
  onMousedown: r(W, ["prevent"])
387
381
  }, X({
388
382
  "right-icon": d(() => [
389
- S(a(Y), {
383
+ C(a(Y), {
390
384
  name: "arrow_down",
391
385
  "aria-hidden": "true",
392
- class: T(["rds-e-dropdown__input-caret", {
393
- "rds-e-dropdown__input-caret--open": t
386
+ class: R(["rds-e-dropdown__input-caret", {
387
+ "rds-e-dropdown__input-caret--open": l
394
388
  }]),
395
389
  onMousedown: r(W, ["prevent", "stop"])
396
390
  }, null, 8, ["class"])
@@ -400,64 +394,61 @@ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__
400
394
  e.$slots["helper-text"] ? {
401
395
  name: "helper-text",
402
396
  fn: d(() => [
403
- v(e.$slots, "helper-text", {}, void 0, !0)
397
+ f(e.$slots, "helper-text", {}, void 0, !0)
404
398
  ]),
405
399
  key: "0"
406
400
  } : void 0
407
401
  ]), 1032, ["id", "modelValue", "label", "error", "helper", "helper-text", "loading"]))
408
402
  ]),
409
403
  placeholder: d(() => [
410
- l[14] || (l[14] = c("span", null, null, -1))
404
+ t[14] || (t[14] = p("span", null, null, -1))
411
405
  ]),
412
- option: d(({ option: t, search: f, index: g }) => [
413
- c("div", Oe, [
414
- c("div", xe, [
415
- c("div", Be, [
416
- a($) ? (u(), K(a(ke), {
406
+ option: d(({ option: l, search: y, index: A }) => [
407
+ p("div", Se, [
408
+ p("div", xe, [
409
+ p("div", Be, [
410
+ a(h) ? (u(), K(a(ke), {
417
411
  key: 0,
418
- id: `${g}-${t.id}`,
412
+ id: `${A}-${l.id}`,
419
413
  small: o.small,
420
- "model-value": V(t),
421
- disabled: a(x) || (t == null ? void 0 : t.$isDisabled) || !1,
422
- onClick: r((b) => P(t), ["prevent", "stop"])
423
- }, null, 8, ["id", "small", "model-value", "disabled", "onClick"])) : !a($) && o.showRadio ? (u(), K(a($e), {
414
+ "model-value": x(l),
415
+ disabled: a(O) || l?.$isDisabled || !1,
416
+ onClick: r((U) => P(l), ["prevent", "stop"])
417
+ }, null, 8, ["id", "small", "model-value", "disabled", "onClick"])) : !a(h) && o.showRadio ? (u(), K(a($e), {
424
418
  key: 1,
425
419
  modelValue: H.value,
426
- "onUpdate:modelValue": l[1] || (l[1] = (b) => H.value = b),
420
+ "onUpdate:modelValue": t[1] || (t[1] = (U) => H.value = U),
427
421
  "group-name": `group-${o.id}`
428
422
  }, {
429
423
  default: d(() => [
430
- S(a(Ce), {
431
- id: `${g}-${typeof t == "object" ? t.id : g}`,
424
+ C(a(Ce), {
425
+ id: `${A}-${typeof l == "object" ? l.id : A}`,
432
426
  small: o.small,
433
- option: typeof t == "object" ? t.id : t,
434
- checked: V(t),
435
- disabled: a(x) || (t == null ? void 0 : t.$isDisabled) || !1,
436
- onClick: r((b) => P(t), ["prevent", "stop"])
427
+ option: typeof l == "object" ? l.id : l,
428
+ checked: x(l),
429
+ disabled: a(O) || l?.$isDisabled || !1,
430
+ onClick: r((U) => P(l), ["prevent", "stop"])
437
431
  }, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
438
432
  ]),
439
433
  _: 2
440
- }, 1032, ["modelValue", "group-name"])) : O("", !0)
434
+ }, 1032, ["modelValue", "group-name"])) : D("", !0)
441
435
  ]),
442
- c("div", Ve, [
443
- v(e.$slots, "singleLabel", { option: t }, () => {
444
- var b;
445
- return [
446
- (b = U.value) != null && b.label ? (u(), w(ge, { key: 0 }, [
447
- c("span", null, E(t.label), 1),
448
- t != null && t.detail ? (u(), w("span", Ae, E(t.detail), 1)) : O("", !0)
449
- ], 64)) : (u(), w("span", Re, E(t), 1))
450
- ];
451
- }, !0)
436
+ p("div", Ve, [
437
+ f(e.$slots, "singleLabel", { option: l }, () => [
438
+ N.value?.label ? (u(), b(ge, { key: 0 }, [
439
+ p("span", null, T(l.label), 1),
440
+ l?.detail ? (u(), b("span", Ae, T(l.detail), 1)) : D("", !0)
441
+ ], 64)) : (u(), b("span", Fe, T(l), 1))
442
+ ], !0)
452
443
  ])
453
444
  ]),
454
- e.$slots.optionAppend ? (u(), w("div", Fe, [
455
- v(e.$slots, "optionAppend", {
456
- option: t,
457
- search: f,
458
- index: g
445
+ e.$slots.optionAppend ? (u(), b("div", Re, [
446
+ f(e.$slots, "optionAppend", {
447
+ option: l,
448
+ search: y,
449
+ index: A
459
450
  }, void 0, !0)
460
- ])) : O("", !0)
451
+ ])) : D("", !0)
461
452
  ])
462
453
  ]),
463
454
  _: 2
@@ -465,82 +456,82 @@ import './style/dropdown.css';const Se = ["id"], Oe = { class: "rds-e-dropdown__
465
456
  e.$slots.limit ? {
466
457
  name: "limit",
467
458
  fn: d(() => [
468
- v(e.$slots, "limit", {}, void 0, !0)
459
+ f(e.$slots, "limit", {}, void 0, !0)
469
460
  ]),
470
461
  key: "0"
471
462
  } : void 0,
472
463
  e.$slots.maxElements ? {
473
464
  name: "maxElements",
474
465
  fn: d(() => [
475
- v(e.$slots, "maxElements", {}, void 0, !0)
466
+ f(e.$slots, "maxElements", {}, void 0, !0)
476
467
  ]),
477
468
  key: "1"
478
469
  } : void 0,
479
470
  e.$slots.noResult ? {
480
471
  name: "noResult",
481
- fn: d(({ search: t }) => [
482
- v(e.$slots, "noResult", { search: t }, void 0, !0)
472
+ fn: d(({ search: l }) => [
473
+ f(e.$slots, "noResult", { search: l }, void 0, !0)
483
474
  ]),
484
475
  key: "2"
485
476
  } : void 0,
486
477
  e.$slots.noOptions ? {
487
478
  name: "noOptions",
488
479
  fn: d(() => [
489
- v(e.$slots, "noOptions", {}, void 0, !0)
480
+ f(e.$slots, "noOptions", {}, void 0, !0)
490
481
  ]),
491
482
  key: "3"
492
483
  } : void 0,
493
- C.value || e.$slots.beforeList ? {
484
+ k.value || e.$slots.beforeList ? {
494
485
  name: "beforeList",
495
486
  fn: d(() => [
496
- C.value ? (u(), w("div", {
487
+ k.value ? (u(), b("div", {
497
488
  key: 0,
498
489
  class: "rds-e-dropdown__before-list",
499
- onMousedown: l[5] || (l[5] = r(() => {
490
+ onMousedown: t[5] || (t[5] = r(() => {
500
491
  }, ["stop"])),
501
492
  onClick: r(me, ["stop"]),
502
- onBlur: l[6] || (l[6] = r(() => {
493
+ onBlur: t[6] || (t[6] = r(() => {
503
494
  }, ["stop"])),
504
- onFocus: l[7] || (l[7] = r(() => {
495
+ onFocus: t[7] || (t[7] = r(() => {
505
496
  }, ["stop"])),
506
- onKeydown: l[8] || (l[8] = r(() => {
497
+ onKeydown: t[8] || (t[8] = r(() => {
507
498
  }, ["stop"])),
508
- onKeyup: l[9] || (l[9] = r(() => {
499
+ onKeyup: t[9] || (t[9] = r(() => {
509
500
  }, ["stop"])),
510
- onKeypress: l[10] || (l[10] = r(() => {
501
+ onKeypress: t[10] || (t[10] = r(() => {
511
502
  }, ["stop"])),
512
- onChange: l[11] || (l[11] = r(() => {
503
+ onChange: t[11] || (t[11] = r(() => {
513
504
  }, ["stop"]))
514
505
  }, [
515
- c("div", Te, [
516
- S(a(Z), Q({
506
+ p("div", Te, [
507
+ C(a(Z), Q({
517
508
  ref_key: "textFieldInput",
518
- ref: y,
519
- modelValue: I.value,
520
- "onUpdate:modelValue": l[2] || (l[2] = (t) => I.value = t)
509
+ ref: v,
510
+ modelValue: j.value,
511
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => j.value = l)
521
512
  }, oe.value, {
522
513
  "full-width": "",
523
- onMousedown: l[3] || (l[3] = r(() => {
514
+ onMousedown: t[3] || (t[3] = r(() => {
524
515
  }, ["stop", "prevent"])),
525
- onFocus: l[4] || (l[4] = r(() => {
516
+ onFocus: t[4] || (t[4] = r(() => {
526
517
  }, ["stop"]))
527
518
  }), null, 16, ["modelValue"])
528
519
  ])
529
- ], 32)) : O("", !0),
530
- e.$slots.beforeList ? (u(), w("div", Ee, [
531
- c("div", Le, [
532
- v(e.$slots, "beforeList", {}, void 0, !0)
520
+ ], 32)) : D("", !0),
521
+ e.$slots.beforeList ? (u(), b("div", Ee, [
522
+ p("div", Le, [
523
+ f(e.$slots, "beforeList", {}, void 0, !0)
533
524
  ])
534
- ])) : O("", !0)
525
+ ])) : D("", !0)
535
526
  ]),
536
527
  key: "4"
537
528
  } : void 0,
538
529
  e.$slots.afterList ? {
539
530
  name: "afterList",
540
531
  fn: d(() => [
541
- c("div", Me, [
542
- c("div", je, [
543
- v(e.$slots, "afterList", {}, void 0, !0)
532
+ p("div", Me, [
533
+ p("div", je, [
534
+ f(e.$slots, "afterList", {}, void 0, !0)
544
535
  ])
545
536
  ])
546
537
  ]),
@@ -1,17 +1,17 @@
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-K8-vLJgV.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 = {
1
+ import { defineComponent as M, ref as z, computed as c, createElementBlock as s, openBlock as l, normalizeClass as I, createElementVNode as n, renderSlot as v, createVNode as p, createCommentVNode as r, toDisplayString as f, withModifiers as N } from "vue";
2
+ import { I as g } from "./icon-svg-DxlNo61Q.js";
3
+ import $ from "./progressBar.es.js";
4
+ import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-upload-item__icon-container" }, E = { class: "rds-e-file-upload-item__details" }, R = { class: "rds-e-file-upload-item__info-wrapper" }, x = { class: "rds-e-file-upload-item__name" }, P = {
6
6
  key: 0,
7
7
  class: "rds-e-file-upload-item__meta"
8
- }, P = {
8
+ }, V = {
9
9
  key: 0,
10
10
  class: "rds-e-file-upload-item__size"
11
- }, V = {
11
+ }, q = {
12
12
  key: 1,
13
13
  class: "rds-e-file-upload-item__time-remaining"
14
- }, q = {
14
+ }, D = {
15
15
  key: 1,
16
16
  class: "rds-e-file-upload-item__error-message"
17
17
  }, T = {
@@ -133,7 +133,7 @@ import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-u
133
133
  };
134
134
  return (t, i) => (l(), s("div", {
135
135
  id: e.id,
136
- class: N(["rds-e-file-upload-item rds-radius-inputs", [_.value]]),
136
+ class: I(["rds-e-file-upload-item rds-radius-inputs", [_.value]]),
137
137
  onMouseover: i[1] || (i[1] = (d) => m.value = !0),
138
138
  onMouseleave: i[2] || (i[2] = (d) => m.value = !1)
139
139
  }, [
@@ -146,17 +146,17 @@ import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-u
146
146
  }, null, 8, ["name"])
147
147
  ], !0)
148
148
  ]),
149
- n("div", R, [
150
- n("div", E, [
149
+ n("div", E, [
150
+ n("div", R, [
151
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)
152
+ a.value !== "error" ? (l(), s("div", P, [
153
+ e.showFileSize ? (l(), s("span", V, f(S.value), 1)) : r("", !0),
154
+ a.value === "uploading" && e.timeRemaining ? (l(), s("span", q, f(e.timeRemaining), 1)) : r("", !0)
155
155
  ])) : r("", !0),
156
- a.value === "error" && e.errorMessage ? (l(), s("div", q, f(e.errorMessage), 1)) : r("", !0)
156
+ a.value === "error" && e.errorMessage ? (l(), s("div", D, f(e.errorMessage), 1)) : r("", !0)
157
157
  ]),
158
158
  a.value === "uploading" && e.showProgressBar ? (l(), s("div", T, [
159
- p(w, {
159
+ p($, {
160
160
  id: e.id,
161
161
  class: "rds-e-file-upload-item__progress-bar",
162
162
  step: e.progress,
@@ -177,7 +177,7 @@ import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-u
177
177
  class: "rds-e-file-upload-item__action-button",
178
178
  "aria-label": e.action.label || "Eliminar archivo",
179
179
  disabled: e.disabled,
180
- onClick: i[0] || (i[0] = $((d) => B(e.action), ["stop"]))
180
+ onClick: i[0] || (i[0] = N((d) => B(e.action), ["stop"]))
181
181
  }, [
182
182
  p(g, {
183
183
  name: e.action.icon,
@@ -189,7 +189,7 @@ import './style/fileUploadItem.css';const C = ["id"], F = { class: "rds-e-file-u
189
189
  ])
190
190
  ], 42, C));
191
191
  }
192
- }), J = /* @__PURE__ */ I(G, [["__scopeId", "data-v-5ff636f4"]]);
192
+ }), J = /* @__PURE__ */ w(G, [["__scopeId", "data-v-5ff636f4"]]);
193
193
  export {
194
194
  J as default
195
195
  };