energy-components 1.13.0 → 1.14.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 (39) hide show
  1. package/dist/components/breadcrumbs.es.js +59 -40
  2. package/dist/components/dropdown.es.js +201 -152
  3. package/dist/components/indicator.es.js +8 -8
  4. package/dist/components/multiselect.es.js +15 -11
  5. package/dist/components/style/accordion.css +1 -1
  6. package/dist/components/style/actionButton.css +1 -1
  7. package/dist/components/style/breadcrumbs.css +1 -1
  8. package/dist/components/style/button.css +1 -1
  9. package/dist/components/style/checkbox.css +1 -1
  10. package/dist/components/style/collapsable.css +1 -1
  11. package/dist/components/style/directAccess.css +1 -1
  12. package/dist/components/style/dragAndDrop.css +1 -1
  13. package/dist/components/style/dropdown.css +1 -1
  14. package/dist/components/style/filterChip.css +1 -1
  15. package/dist/components/style/filterTag.css +1 -1
  16. package/dist/components/style/indicator.css +1 -1
  17. package/dist/components/style/infoBox.css +1 -1
  18. package/dist/components/style/link.css +1 -1
  19. package/dist/components/style/multiselect.css +1 -1
  20. package/dist/components/style/persistentToast.css +1 -1
  21. package/dist/components/style/progressBar.css +1 -1
  22. package/dist/components/style/quantitySelector.css +1 -1
  23. package/dist/components/style/radioButton.css +1 -1
  24. package/dist/components/style/selectionChip.css +1 -1
  25. package/dist/components/style/switch.css +1 -1
  26. package/dist/components/style/tableslotedcomponent.css +1 -1
  27. package/dist/components/style/tag.css +1 -1
  28. package/dist/components/style/textArea.css +1 -1
  29. package/dist/components/style/textField.css +1 -1
  30. package/dist/components/style/tooltip.css +1 -1
  31. package/dist/components/tooltip.es.js +344 -325
  32. package/dist/energy-components.es.js +4874 -4783
  33. package/dist/energy-components.umd.js +2 -2
  34. package/dist/style.css +1 -1
  35. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +58 -13
  36. package/dist/types/src/components/navigation/breadcrumbs/breadcrumbs.vue.d.ts +15 -0
  37. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +15 -0
  38. package/dist/types/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
- import { defineComponent as ie, mergeModels as P, toRefs as ue, useModel as ce, ref as S, computed as u, provide as I, onMounted as pe, nextTick as F, onBeforeUnmount as me, createElementBlock as g, openBlock as m, createVNode as V, mergeProps as W, unref as n, withModifiers as a, createSlots as z, withCtx as d, createElementVNode as c, createCommentVNode as O, createBlock as G, renderSlot as f, Fragment as fe, toDisplayString as _, normalizeClass as ve } from "vue";
2
- import be from "./multiselect.es.js";
3
- import ye from "./checkbox.es.js";
4
- import { _ as we } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
- import ge from "./radioButton.es.js";
6
- import J from "./textField.es.js";
7
- import { R as he } from "./icon-svg-DuzOdbk1.js";
8
- import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { class: "rds-e-dropdown__option" }, De = { class: "rds-e-dropdown__option-container" }, Se = { class: "rds-e-dropdown__option--prepend" }, Ve = { class: "rds-e-dropdown__option--content" }, Oe = {
1
+ import { defineComponent as fe, mergeModels as J, toRefs as ve, useModel as ye, ref as O, computed as i, provide as U, onMounted as be, nextTick as R, onBeforeUnmount as we, createElementBlock as w, openBlock as u, normalizeClass as T, unref as n, createVNode as S, mergeProps as Q, withModifiers as a, createSlots as X, withCtx as d, createElementVNode as c, createCommentVNode as x, createBlock as K, renderSlot as v, Fragment as ge, toDisplayString as E } from "vue";
2
+ import he from "./multiselect.es.js";
3
+ import ke from "./checkbox.es.js";
4
+ import { _ as $e } from "./radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js";
5
+ import Ce from "./radioButton.es.js";
6
+ import { R as Y } from "./icon-svg-DuzOdbk1.js";
7
+ import Z from "./textField.es.js";
8
+ import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import './style/dropdown.css';const Oe = ["id"], Se = { class: "rds-e-dropdown__option" }, xe = { class: "rds-e-dropdown__option-container" }, Ve = { class: "rds-e-dropdown__option--prepend" }, Be = { class: "rds-e-dropdown__option--content" }, Ae = {
10
10
  key: 0,
11
11
  class: "rds-e-dropdown__option-detail"
12
- }, Ae = { key: 1 }, Be = {
12
+ }, Fe = { key: 1 }, Re = {
13
13
  key: 0,
14
14
  class: "rds-e-dropdown__option--append"
15
- }, Fe = { class: "rds-e-dropdown__before-list-container" }, Re = {
15
+ }, Te = { class: "rds-e-dropdown__before-list-container" }, Ee = {
16
16
  key: 1,
17
17
  class: "rds-e-dropdown__before-list"
18
- }, Ee = { class: "rds-e-dropdown__before-list-container" }, Le = { class: "rds-e-dropdown__after-list" }, xe = { class: "rds-e-dropdown__after-list-container" }, je = /* @__PURE__ */ ie({
18
+ }, Le = { class: "rds-e-dropdown__before-list-container" }, Me = { class: "rds-e-dropdown__after-list" }, je = { class: "rds-e-dropdown__after-list-container" }, Ie = /* @__PURE__ */ fe({
19
19
  __name: "dropdown",
20
- props: /* @__PURE__ */ P({
20
+ props: /* @__PURE__ */ J({
21
21
  /**
22
22
  * Id del dropdown
23
23
  */
@@ -75,7 +75,7 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
75
75
  showRadio: {
76
76
  type: Boolean,
77
77
  default: !1,
78
- validator: (o, R) => o && R.multiple ? (console.error("showRadio solo es valido para seleccion unica"), !1) : !0
78
+ validator: (o, L) => o && L.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.
@@ -155,6 +155,27 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
155
155
  type: Object,
156
156
  default: () => {
157
157
  }
158
+ },
159
+ /**
160
+ * Indica si el dropdown trigger es de solo texto
161
+ */
162
+ textOnly: {
163
+ type: Boolean,
164
+ default: !1
165
+ },
166
+ /**
167
+ * Clase custom para el trigger del dropdown (solo aplica a text-only trigger)
168
+ */
169
+ customTriggerClass: {
170
+ type: String,
171
+ default: ""
172
+ },
173
+ /**
174
+ * Indica si el dropdown es de estilo inverso (solo para text-only)
175
+ */
176
+ inverse: {
177
+ type: Boolean,
178
+ default: !1
158
179
  }
159
180
  }, {
160
181
  modelValue: {
@@ -162,18 +183,22 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
162
183
  },
163
184
  modelModifiers: {}
164
185
  }),
165
- emits: /* @__PURE__ */ P(["open", "close", "select", "change"], ["update:modelValue"]),
166
- setup(o, { expose: R, emit: Q }) {
167
- const s = o, k = Q, {
186
+ emits: /* @__PURE__ */ J(["open", "close", "select", "change"], ["update:modelValue"]),
187
+ setup(o, { expose: L, emit: ee }) {
188
+ const s = o, k = ee, {
168
189
  disabled: $,
169
- limit: E,
190
+ limit: M,
170
191
  multiple: C,
171
- options: h
172
- } = ue(s), r = ce(o, "modelValue"), i = S([]), v = S(), b = S(), L = S(""), x = S(!1);
173
- let A = !1;
174
- const X = () => {
175
- x.value = !0;
176
- }, D = u(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), Y = u(() => ({
192
+ options: h,
193
+ textOnly: j
194
+ } = ve(s), r = ye(o, "modelValue"), p = O([]), m = O(), y = O(), I = O(""), _ = O(!1);
195
+ let V = !1;
196
+ const le = () => {
197
+ _.value = !0;
198
+ }, te = i(() => {
199
+ var e;
200
+ return ((e = m.value) == null ? void 0 : e.isOpen) ?? !1;
201
+ }), D = i(() => s.autocomplete && Object.keys(s.autocomplete).length > 0), oe = i(() => ({
177
202
  id: s.autocomplete.id || `autocomplete-${s.id}`,
178
203
  label: s.autocomplete.label || s.label,
179
204
  icon: s.autocomplete.icon || "",
@@ -185,52 +210,52 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
185
210
  helperText: s.autocomplete.helperText ?? "",
186
211
  readonly: s.autocomplete.readonly ?? !1
187
212
  }));
188
- I("registerDropdownFocusElement", (e) => {
189
- e && !i.value.includes(e) && i.value.push(e);
190
- }), I("unregisterDropdownFocusElement", (e) => {
191
- const l = i.value.findIndex((t) => t === e);
192
- l > -1 && i.value.splice(l, 1);
193
- }), I("isFocusWithinDropdown", (e) => {
194
- const l = i.value.some((p) => p === e || p.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"));
213
+ U("registerDropdownFocusElement", (e) => {
214
+ e && !p.value.includes(e) && p.value.push(e);
215
+ }), U("unregisterDropdownFocusElement", (e) => {
216
+ const l = p.value.findIndex((t) => t === e);
217
+ l > -1 && p.value.splice(l, 1);
218
+ }), U("isFocusWithinDropdown", (e) => {
219
+ 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"));
195
220
  return l || t;
196
221
  });
197
- const q = u({
222
+ const H = i({
198
223
  get: () => r.value && typeof r.value == "object" && !Array.isArray(r.value) ? r.value.id : typeof r.value == "string" || typeof r.value == "number" ? r.value : null,
199
224
  set: (e) => {
200
225
  const l = h.value.find((t) => typeof t == "object" ? t.id === e : t === e);
201
226
  r.value = l || null;
202
227
  }
203
- }), Z = u(() => (h.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), ee = u(() => !C.value || s.closeOnSelect), N = u({
204
- get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length > E.value ? s.limitText(E.value) : r.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof r.value == "object" ? r.value.label : typeof r.value == "string" ? r.value : "" : "",
228
+ }), se = i(() => (h.value ?? []).every((e) => typeof e == "object" && (e == null ? void 0 : e.id) && (e == null ? void 0 : e.label))), re = i(() => !C.value || s.closeOnSelect), q = i({
229
+ get: () => r.value ? s.multiple ? Array.isArray(r.value) ? r.value.length > M.value ? s.limitText(M.value) : r.value.map((e) => typeof e == "string" ? e : e.label).join(", ") : "" : typeof r.value == "object" ? r.value.label : typeof r.value == "string" ? r.value : "" : "",
205
230
  set: () => null
206
- }), le = u(() => ({
231
+ }), ne = i(() => ({
207
232
  "rds-e-dropdown-input": !0,
208
233
  "rds-e-dropdown--disabled": $.value,
209
234
  "rds-e-dropdown--small": s.small
210
- })), te = u(() => s.openDirection !== "auto" ? s.openDirection : ""), j = u(() => {
235
+ })), ae = i(() => s.openDirection !== "auto" ? s.openDirection : ""), N = i(() => {
211
236
  const e = {};
212
- return Z.value && Object.assign(e, {
237
+ return se.value && Object.assign(e, {
213
238
  "track-by": "id",
214
239
  label: "label"
215
240
  }), e;
216
- }), oe = u(() => D.value && s.autocomplete.autocompleteFilter ? h.value.filter((e) => s.autocomplete.autocompleteFilter(e, L.value)) : h.value), B = (e) => {
241
+ }), de = i(() => D.value && s.autocomplete.autocompleteFilter ? h.value.filter((e) => s.autocomplete.autocompleteFilter(e, I.value)) : h.value), B = (e) => {
217
242
  if (r.value === e) return !0;
218
243
  if (Array.isArray(r.value)) {
219
244
  if (typeof e == "string") return r.value.includes(e);
220
- if (j.value.label)
245
+ if (N.value.label)
221
246
  return r.value.some((l) => l.id === e.id);
222
247
  }
223
248
  return !1;
224
- }, se = (e) => {
249
+ }, ie = (e) => {
225
250
  k("open", e, s.id);
226
- }, re = (e) => {
251
+ }, ue = (e) => {
227
252
  k("close", e, s.id);
228
- }, ae = (e) => {
229
- F(() => {
253
+ }, ce = (e) => {
254
+ R(() => {
230
255
  k("select", e);
231
256
  });
232
- }, ne = () => {
233
- F(() => {
257
+ }, pe = () => {
258
+ R(() => {
234
259
  if (C.value) {
235
260
  const e = h.value.filter(
236
261
  (l) => B(l)
@@ -243,83 +268,107 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
243
268
  k("change", [e]);
244
269
  }
245
270
  });
246
- }, U = (e) => {
247
- v.value.select(e), A = !0;
248
- }, M = () => {
249
- v.value.activate();
250
- }, T = () => {
251
- v.value.deactivate();
252
- }, K = () => {
253
- v.value.toggle(), A = !0;
254
- }, de = () => {
255
- D.value && b.value && (X(), M(), F(() => {
256
- b.value.focus();
271
+ }, P = (e) => {
272
+ m.value.select(e), V = !0;
273
+ }, A = () => {
274
+ m.value.activate();
275
+ }, F = () => {
276
+ m.value.deactivate();
277
+ }, W = () => {
278
+ m.value.toggle(), V = !0;
279
+ }, z = () => {
280
+ te.value ? F() : A();
281
+ }, me = () => {
282
+ D.value && y.value && (le(), A(), R(() => {
283
+ y.value.focus();
257
284
  }));
258
- }, H = (e) => {
259
- var p, w;
260
- if (A) {
261
- A = !1;
285
+ }, G = (e) => {
286
+ var f, g;
287
+ if (V) {
288
+ V = !1;
262
289
  return;
263
290
  }
264
- const l = e.target, t = !((w = (p = v.value) == null ? void 0 : p.$el) != null && w.contains(l));
265
- if (x.value) {
266
- const y = b.value && !b.value.$el.contains(l) && !l.closest(".rds-e-dropdown__before-list");
267
- t && y && (x.value = !1, T());
268
- } else t && T();
291
+ const l = e.target, t = !((g = (f = m.value) == null ? void 0 : f.$el) != null && g.contains(l));
292
+ if (_.value) {
293
+ const b = y.value && !y.value.$el.contains(l) && !l.closest(".rds-e-dropdown__before-list");
294
+ t && b && (_.value = !1, F());
295
+ } else t && F();
269
296
  };
270
- return pe(() => {
297
+ return be(() => {
271
298
  var e;
272
- (e = v.value) != null && e.$el && i.value.push(v.value.$el), F(() => {
299
+ (e = m.value) != null && e.$el && p.value.push(m.value.$el), R(() => {
273
300
  var l;
274
- if (D.value && ((l = b.value) != null && l.$el)) {
275
- i.value.push(b.value.$el);
276
- const t = b.value.$el.closest(".rds-e-dropdown__before-list");
277
- t && !i.value.includes(t) && i.value.push(t);
301
+ if (D.value && ((l = y.value) != null && l.$el)) {
302
+ p.value.push(y.value.$el);
303
+ const t = y.value.$el.closest(".rds-e-dropdown__before-list");
304
+ t && !p.value.includes(t) && p.value.push(t);
278
305
  }
279
- }), document.addEventListener("click", H);
280
- }), me(() => {
281
- i.value = [], document.removeEventListener("click", H);
282
- }), R({
306
+ }), document.addEventListener("click", G);
307
+ }), we(() => {
308
+ p.value = [], document.removeEventListener("click", G);
309
+ }), L({
283
310
  /**
284
311
  * Abre el dropdown
285
312
  */
286
- activate: M,
313
+ activate: A,
287
314
  /**
288
315
  * Cierra el dropdown
289
316
  */
290
- deactivate: T
291
- }), (e, l) => (m(), g("div", $e, [
292
- V(be, W({
317
+ deactivate: F
318
+ }), (e, l) => (u(), w("div", {
319
+ class: T(["rds-e-dropdown", {
320
+ "rds-e-dropdown--text-only": n(j),
321
+ "rds-e-dropdown--inverse": o.inverse
322
+ }])
323
+ }, [
324
+ S(he, Q({
293
325
  ref_key: "multiselect",
294
- ref: v,
326
+ ref: m,
295
327
  modelValue: r.value,
296
328
  "onUpdate:modelValue": l[12] || (l[12] = (t) => r.value = t),
297
- class: le.value,
298
- options: oe.value,
299
- "close-on-select": ee.value,
329
+ class: ne.value,
330
+ options: de.value,
331
+ "close-on-select": re.value,
300
332
  "show-labels": !1,
301
333
  disabled: n($),
302
334
  multiple: n(C),
303
335
  "max-height": o.maxHeight,
304
336
  searchable: !1,
305
337
  small: o.small,
306
- "open-direction": te.value,
307
- limit: n(E),
338
+ "open-direction": ae.value,
339
+ limit: n(M),
308
340
  "limit-text": o.limitText
309
- }, j.value, {
341
+ }, N.value, {
310
342
  "append-to-body": o.appendToBody,
311
- onOpen: se,
312
- onClose: re,
313
- onSelect: ae,
314
- "onUpdate:modelValue": ne,
315
- onFocus: l[13] || (l[13] = a(() => M(), ["prevent"])),
343
+ "text-only": n(j),
344
+ onOpen: ie,
345
+ onClose: ue,
346
+ onSelect: ce,
347
+ "onUpdate:modelValue": pe,
348
+ onFocus: l[13] || (l[13] = a(() => A(), ["prevent"])),
316
349
  onBlur: a(() => null, ["prevent"])
317
- }), z({
350
+ }), X({
318
351
  selection: d(({ isOpen: t }) => [
319
- V(n(J), {
352
+ n(j) ? (u(), w("div", {
353
+ key: 0,
354
+ id: `multiselect-dropdown-${o.id}`,
355
+ class: T([o.customTriggerClass, "rds-e-dropdown__text-only"]),
356
+ onMousedown: a(z, ["prevent", "stop"])
357
+ }, [
358
+ c("span", null, E(q.value || o.label), 1),
359
+ S(n(Y), {
360
+ name: "arrow_down",
361
+ "aria-hidden": "true",
362
+ class: T(["rds-e-dropdown__input-caret", {
363
+ "rds-e-dropdown__input-caret--open": t
364
+ }]),
365
+ onMousedown: a(z, ["prevent", "stop"])
366
+ }, null, 8, ["class"])
367
+ ], 42, Oe)) : (u(), K(n(Z), {
368
+ key: 1,
320
369
  id: `multiselect-dropdown-${o.id}`,
321
- modelValue: N.value,
322
- "onUpdate:modelValue": l[0] || (l[0] = (p) => N.value = p),
370
+ modelValue: q.value,
371
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => q.value = f),
323
372
  class: "rds-e-dropdown__input",
324
373
  disabled: n($),
325
374
  label: o.label,
@@ -327,16 +376,16 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
327
376
  helper: o.helper,
328
377
  "helper-text": o.helperText,
329
378
  readonly: "",
330
- onMousedown: a(K, ["prevent"])
331
- }, z({
379
+ onMousedown: a(W, ["prevent"])
380
+ }, X({
332
381
  "right-icon": d(() => [
333
- V(n(he), {
382
+ S(n(Y), {
334
383
  name: "arrow_down",
335
384
  "aria-hidden": "true",
336
- class: ve(["rds-e-dropdown__input-caret", {
385
+ class: T(["rds-e-dropdown__input-caret", {
337
386
  "rds-e-dropdown__input-caret--open": t
338
387
  }]),
339
- onMousedown: a(K, ["prevent", "stop"])
388
+ onMousedown: a(W, ["prevent", "stop"])
340
389
  }, null, 8, ["class"])
341
390
  ]),
342
391
  _: 2
@@ -344,64 +393,64 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
344
393
  e.$slots["helper-text"] ? {
345
394
  name: "helper-text",
346
395
  fn: d(() => [
347
- f(e.$slots, "helper-text", {}, void 0, !0)
396
+ v(e.$slots, "helper-text", {}, void 0, !0)
348
397
  ]),
349
398
  key: "0"
350
399
  } : void 0
351
- ]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"])
400
+ ]), 1032, ["id", "modelValue", "disabled", "label", "error", "helper", "helper-text"]))
352
401
  ]),
353
402
  placeholder: d(() => [
354
403
  l[14] || (l[14] = c("span", null, null, -1))
355
404
  ]),
356
- option: d(({ option: t, search: p, index: w }) => [
357
- c("div", Ce, [
358
- c("div", De, [
359
- c("div", Se, [
360
- n(C) ? (m(), G(n(ye), {
405
+ option: d(({ option: t, search: f, index: g }) => [
406
+ c("div", Se, [
407
+ c("div", xe, [
408
+ c("div", Ve, [
409
+ n(C) ? (u(), K(n(ke), {
361
410
  key: 0,
362
- id: `${w}-${t.id}`,
411
+ id: `${g}-${t.id}`,
363
412
  small: o.small,
364
413
  "is-checked": B(t),
365
414
  disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
366
- onClick: a((y) => U(t), ["prevent", "stop"])
367
- }, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !n(C) && o.showRadio ? (m(), G(n(we), {
415
+ onClick: a((b) => P(t), ["prevent", "stop"])
416
+ }, null, 8, ["id", "small", "is-checked", "disabled", "onClick"])) : !n(C) && o.showRadio ? (u(), K(n($e), {
368
417
  key: 1,
369
- modelValue: q.value,
370
- "onUpdate:modelValue": l[1] || (l[1] = (y) => q.value = y),
418
+ modelValue: H.value,
419
+ "onUpdate:modelValue": l[1] || (l[1] = (b) => H.value = b),
371
420
  "group-name": `group-${o.id}`
372
421
  }, {
373
422
  default: d(() => [
374
- V(n(ge), {
375
- id: `${w}-${typeof t == "object" ? t.id : w}`,
423
+ S(n(Ce), {
424
+ id: `${g}-${typeof t == "object" ? t.id : g}`,
376
425
  small: o.small,
377
426
  option: typeof t == "object" ? t.id : t,
378
427
  checked: B(t),
379
428
  disabled: n($) || (t == null ? void 0 : t.$isDisabled) || !1,
380
- onClick: a((y) => U(t), ["prevent", "stop"])
429
+ onClick: a((b) => P(t), ["prevent", "stop"])
381
430
  }, null, 8, ["id", "small", "option", "checked", "disabled", "onClick"])
382
431
  ]),
383
432
  _: 2
384
- }, 1032, ["modelValue", "group-name"])) : O("", !0)
433
+ }, 1032, ["modelValue", "group-name"])) : x("", !0)
385
434
  ]),
386
- c("div", Ve, [
387
- f(e.$slots, "singleLabel", { option: t }, () => {
388
- var y;
435
+ c("div", Be, [
436
+ v(e.$slots, "singleLabel", { option: t }, () => {
437
+ var b;
389
438
  return [
390
- (y = j.value) != null && y.label ? (m(), g(fe, { key: 0 }, [
391
- c("span", null, _(t.label), 1),
392
- t != null && t.detail ? (m(), g("span", Oe, _(t.detail), 1)) : O("", !0)
393
- ], 64)) : (m(), g("span", Ae, _(t), 1))
439
+ (b = N.value) != null && b.label ? (u(), w(ge, { key: 0 }, [
440
+ c("span", null, E(t.label), 1),
441
+ t != null && t.detail ? (u(), w("span", Ae, E(t.detail), 1)) : x("", !0)
442
+ ], 64)) : (u(), w("span", Fe, E(t), 1))
394
443
  ];
395
444
  }, !0)
396
445
  ])
397
446
  ]),
398
- e.$slots.optionAppend ? (m(), g("div", Be, [
399
- f(e.$slots, "optionAppend", {
447
+ e.$slots.optionAppend ? (u(), w("div", Re, [
448
+ v(e.$slots, "optionAppend", {
400
449
  option: t,
401
- search: p,
402
- index: w
450
+ search: f,
451
+ index: g
403
452
  }, void 0, !0)
404
- ])) : O("", !0)
453
+ ])) : x("", !0)
405
454
  ])
406
455
  ]),
407
456
  _: 2
@@ -409,40 +458,40 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
409
458
  e.$slots.limit ? {
410
459
  name: "limit",
411
460
  fn: d(() => [
412
- f(e.$slots, "limit", {}, void 0, !0)
461
+ v(e.$slots, "limit", {}, void 0, !0)
413
462
  ]),
414
463
  key: "0"
415
464
  } : void 0,
416
465
  e.$slots.maxElements ? {
417
466
  name: "maxElements",
418
467
  fn: d(() => [
419
- f(e.$slots, "maxElements", {}, void 0, !0)
468
+ v(e.$slots, "maxElements", {}, void 0, !0)
420
469
  ]),
421
470
  key: "1"
422
471
  } : void 0,
423
472
  e.$slots.noResult ? {
424
473
  name: "noResult",
425
474
  fn: d(({ search: t }) => [
426
- f(e.$slots, "noResult", { search: t }, void 0, !0)
475
+ v(e.$slots, "noResult", { search: t }, void 0, !0)
427
476
  ]),
428
477
  key: "2"
429
478
  } : void 0,
430
479
  e.$slots.noOptions ? {
431
480
  name: "noOptions",
432
481
  fn: d(() => [
433
- f(e.$slots, "noOptions", {}, void 0, !0)
482
+ v(e.$slots, "noOptions", {}, void 0, !0)
434
483
  ]),
435
484
  key: "3"
436
485
  } : void 0,
437
486
  D.value || e.$slots.beforeList ? {
438
487
  name: "beforeList",
439
488
  fn: d(() => [
440
- D.value ? (m(), g("div", {
489
+ D.value ? (u(), w("div", {
441
490
  key: 0,
442
491
  class: "rds-e-dropdown__before-list",
443
492
  onMousedown: l[5] || (l[5] = a(() => {
444
493
  }, ["stop"])),
445
- onClick: a(de, ["stop"]),
494
+ onClick: a(me, ["stop"]),
446
495
  onBlur: l[6] || (l[6] = a(() => {
447
496
  }, ["stop"])),
448
497
  onFocus: l[7] || (l[7] = a(() => {
@@ -456,13 +505,13 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
456
505
  onChange: l[11] || (l[11] = a(() => {
457
506
  }, ["stop"]))
458
507
  }, [
459
- c("div", Fe, [
460
- V(n(J), W({
508
+ c("div", Te, [
509
+ S(n(Z), Q({
461
510
  ref_key: "textFieldInput",
462
- ref: b,
463
- modelValue: L.value,
464
- "onUpdate:modelValue": l[2] || (l[2] = (t) => L.value = t)
465
- }, Y.value, {
511
+ ref: y,
512
+ modelValue: I.value,
513
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => I.value = t)
514
+ }, oe.value, {
466
515
  "full-width": "",
467
516
  onMousedown: l[3] || (l[3] = a(() => {
468
517
  }, ["stop", "prevent"])),
@@ -470,30 +519,30 @@ import './style/dropdown.css';const $e = { class: "rds-e-dropdown" }, Ce = { cla
470
519
  }, ["stop"]))
471
520
  }), null, 16, ["modelValue"])
472
521
  ])
473
- ], 32)) : O("", !0),
474
- e.$slots.beforeList ? (m(), g("div", Re, [
475
- c("div", Ee, [
476
- f(e.$slots, "beforeList", {}, void 0, !0)
522
+ ], 32)) : x("", !0),
523
+ e.$slots.beforeList ? (u(), w("div", Ee, [
524
+ c("div", Le, [
525
+ v(e.$slots, "beforeList", {}, void 0, !0)
477
526
  ])
478
- ])) : O("", !0)
527
+ ])) : x("", !0)
479
528
  ]),
480
529
  key: "4"
481
530
  } : void 0,
482
531
  e.$slots.afterList ? {
483
532
  name: "afterList",
484
533
  fn: d(() => [
485
- c("div", Le, [
486
- c("div", xe, [
487
- f(e.$slots, "afterList", {}, void 0, !0)
534
+ c("div", Me, [
535
+ c("div", je, [
536
+ v(e.$slots, "afterList", {}, void 0, !0)
488
537
  ])
489
538
  ])
490
539
  ]),
491
540
  key: "5"
492
541
  } : void 0
493
- ]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body"])
494
- ]));
542
+ ]), 1040, ["modelValue", "class", "options", "close-on-select", "disabled", "multiple", "max-height", "small", "open-direction", "limit", "limit-text", "append-to-body", "text-only"])
543
+ ], 2));
495
544
  }
496
- }), He = /* @__PURE__ */ ke(je, [["__scopeId", "data-v-7f9fb2a0"]]);
545
+ }), ze = /* @__PURE__ */ De(Ie, [["__scopeId", "data-v-08d45c31"]]);
497
546
  export {
498
- He as default
547
+ ze as default
499
548
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, createElementBlock as d, openBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as I, createCommentVNode as B, toDisplayString as C } from "vue";
2
- import { d as T, t as A, a as D } from "./functions-DIHwdgF0.js";
3
- import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineComponent as k, toRefs as z, ref as y, computed as N, watch as S, onMounted as q, onBeforeUnmount as P, createElementBlock as d, openBlock as u, normalizeClass as b, createElementVNode as p, normalizeStyle as V, Fragment as W, renderList as F, createCommentVNode as B, toDisplayString as C } from "vue";
2
+ import { d as I, t as A, a as T } from "./functions-DIHwdgF0.js";
3
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U = { class: "rds-e-indicator__step-content" }, X = { key: 0 }, Y = /* @__PURE__ */ k({
5
5
  __name: "indicator",
6
6
  props: {
@@ -11,7 +11,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
11
11
  type: Array,
12
12
  required: !0,
13
13
  validator(i) {
14
- return !Array.isArray(i) || i.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : i.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
14
+ return !Array.isArray(i) || i.length === 0 ? (console.warn("Advertencia: steps debe ser un array no vacío de strings."), !1) : i.every((o) => typeof o != "string" ? (console.warn(`Advertencia: Todos los elementos en steps deben ser strings. Encontrado: ${typeof o}`), !1) : /^[a-z0-9\s\u00C0-\u017F]+$/i.test(o) ? !0 : (console.warn(`Advertencia: El paso "${o}" contiene caracteres no permitidos. Solo se permiten letras, números y espacios.`), !1));
15
15
  }
16
16
  },
17
17
  /**
@@ -109,7 +109,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
109
109
  l,
110
110
  "rds-e-indicator__bullet--current",
111
111
  a
112
- ), D(n, l) || setTimeout(() => {
112
+ ), T(n, l) || setTimeout(() => {
113
113
  c.value[e].classList.remove(...n), c.value[e].classList.add(...l);
114
114
  }, 150));
115
115
  });
@@ -125,7 +125,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
125
125
  ), S(f, () => {
126
126
  g();
127
127
  }), q(() => {
128
- h(), g(), window.addEventListener("resize", T(m, 200));
128
+ h(), g(), window.addEventListener("resize", I(m, 200));
129
129
  }), P(() => {
130
130
  window.removeEventListener("resize", m);
131
131
  }), (r, e) => (u(), d("div", {
@@ -148,7 +148,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
148
148
  style: V(E.value)
149
149
  }, null, 4)
150
150
  ], 512),
151
- (u(!0), d(W, null, I(t.steps, (s, a) => (u(), d("div", {
151
+ (u(!0), d(W, null, F(t.steps, (s, a) => (u(), d("div", {
152
152
  key: a,
153
153
  class: b(["rds-e-indicator__step-wrapper", L(a)])
154
154
  }, [
@@ -169,7 +169,7 @@ import './style/indicator.css';const M = { class: "rds-e-indicator__inner" }, U
169
169
  ])
170
170
  ], 2));
171
171
  }
172
- }), J = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-5e262dbc"]]);
172
+ }), J = /* @__PURE__ */ D(Y, [["__scopeId", "data-v-8eb9e922"]]);
173
173
  export {
174
174
  J as default
175
175
  };